Comments (2)
I was having the same issue in my server. I modified the punish code with a new command to for the user to store a list of roles that should be removed when punished. When a user is punished, their roles are checked against the defined list of roles. If the user has any roles that are specified to be removed, they are removed. These removed roles are then saved with the punish information. When the punish is lifted automatically or by a user, it restores all roles. I can leave the code here or submit a pull request. For parsing roles, I used some of the code from the Admin cog.
from calebj-cogs.
Those modifications are certainly welcome, and it sounds like a viable solution. Feel free to open a PR!
from calebj-cogs.
Related Issues (20)
- [dice] Cog is blocking HOT 1
- [giveaways] Creation Thread HOT 3
- [recensor] Multi-message whitelist mode
- captcha cog issue HOT 1
- captcha cog issye HOT 1
- [captcha] Double challenge, then kick HOT 9
- [recensor] Include matched (sub)string in message substitutions
- [punish] scheduled role removal sometimes fails
- [xorole] Suggestion: Auto deleting with xorole commands. HOT 3
- [punish] Add clean-bans feature
- [dice] handle freeze in dice verbose command
- [xorole] auto-remove conflicting role(s) on external role add
- [punish] Potential race/conflict with stickyroles
- [scheduler] unstable repeating events
- [punish] Argument avoidal role
- [activitylog] Maximum channels, throwing status message
- [activitylog] Weekly log rotation generates incorrect rotation string
- No cogs show up HOT 2
- Can't find any cogs (Red V3) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calebj-cogs.