heyitsmass / rolebot Goto Github PK
View Code? Open in Web Editor NEWA Discord bot that manages role assignments for community servers with many 'display' roles.
License: MIT License
A Discord bot that manages role assignments for community servers with many 'display' roles.
License: MIT License
Currently administrators have the same permissions as users, however they should be allowed to set ranks for themselves at any level regardless of exclusion.
Using buttons for interactions makes the emoji links unnecessary.
Proposed modification:
-> Force the bot to auto gather roles lower than it's own rank (only assignable roles).
-> Allow the user to exclude roles from this check.
-> Output each button for an assignable roles.
{
"exclusions": [
123456789,
123456780
]
}
assign and reassign should be modified to only be administrator level commands, and sync with Discord on_ready()
Proposed modification
@bot.tree.commands(description="")
@bot.commands.permissions(administrator=True):
async def assign(interaction):
...
@bot.tree.commands(description="")
@bot.commands.permissions(administrator=True):
async def reassign(interaction):
...
Users may not always know that roles with emojis or other special characters require exact entry of the name (aside from capitalization), likewise it is slow to consistently search through the guild roles and excluding a matching one. Like /roles, we should add buttons with all assignable roles lower than the bot (and not administrator) for users to add or remove from the exclusion list. This also indicates any issues with the bots role rank and informs the user if it needs to be elevated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.