CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Discord: !role command #191

Open MrLotU opened 7 years ago

MrLotU commented 7 years ago

I think it would be cool to have some way to make automated role adding/deletion, for example in a minigame server type !join to get the roles needed to access the minigame chat or whatever. This takes away a lot of handwork moderators would have to do otherwise.

Alkali-Metal commented 7 years ago

Personally I think it would be best suited as something like !role join|leave|list and then something like !adminrole add|remove|toggle|purge where adminrole would be used to allow and remove the roles from the user assignable list as you don't want them being able to assign themselves like, the Owner role as that could end badly. And !role list would just list all of the command add-able roles. And of course !adminrole toggle would just toggle the capability to add/remove roles via !role. Also !adminrole purge <role name or ID> would remove that role from everyone that the bot can remove the role from but the purged role wouldn't need to be a role that is user-setable at all as long as it can change it.

MrLotU commented 7 years ago

I agree with you on that, didn't really find the words to get my idea onto the paper if you know what I mean. Than in my example you could use a alias (those will be a thing right?) to make !join be the same as for example !role join <role name or ID>

Alkali-Metal commented 7 years ago

Yeah, alias' are already a thing to a degree and it should make doing that possible (not 100% sure of how alias' work at the moment) but it would rely on Magic:tm: commands being alias-able (yes, I did just use alias-able and if you have a problem with it... :P ) and if I am remembering correctly (again, not 100% sure on this) Magic:tm: commands are not actually alias-able yet.

MrLotU commented 7 years ago

True, but the !join command is really specific, so that can be something for the long road, or not get implemented at all if we don't get alias' for Magic™️ commands.

Alkali-Metal commented 7 years ago

Yes, it is something very specific but if Magic:tm: commands do not get alias-able then you could just create a custom command which returns what they need to type instead of !join or you could just teach people to use !role join Minigame (or whatever the role is) from the start of having the bot and I don't think it would really make that much of a difference, yeah, it takes a bit longer to type as a command but... ¯\_(ツ)_/¯

2Cubed commented 7 years ago

Definitely something to think about Later™. :smile: