BYU-CS-Discord / CSBot

The One beneath the rule of the Supreme Overlord (of our Discord server. This is a Discord bot, lol.)
BSD Zero Clause License
9 stars 3 forks source link

Slash Command - Smite #18

Open Plyb opened 2 years ago

Plyb commented 2 years ago

/smite <user> "smites" a user, which means the bot will no longer respond in any way to the user. Also shows a dramatic gif of Odin smiting Thor. /unsmite <user> reverses a smiting. Admins, under no circumstance, can be smitten. If a non-admin user attempts to use /smite they are told they don't have permission. If they try to smite themselves, we show them the "wack" image. If they try to smite the bot, they are shown the "You fool, only now do you understand" message and are smitten themselves.

Exception: starboard reactions are still counted

AverageHelper commented 2 years ago

I'm guessing this'd have some database stuff. Perhaps a table of User objects with a boolean smitten field would do the trick. Would be easy enough to look up the calling user every command to make sure they aren't smitten.

AverageHelper commented 2 years ago

Another option could be to add a Smitten role. Permissions could be set such that smitten users can't even see or run any commands.

JstnMcBrd commented 2 years ago

The second option would give us more flexibility if we wanted to add any other functionality/penalties to Smite.