New discord commands for preventing players using the bot#145
Merged
Conversation
…the bot Discord commands added: /botmute <discord user> <minecraft name> <time> <reason> /unbotmute <discord user> <minecraft name> /botmutelist <optional page> Each mute requires both a discord user and minecraft name, I could make the discord user optional in the future as currently it has to be a real profile from the server I've also made a new class called TimeUtil which includes the parser for the time argument. The time argument must be a series of segments with a number prefix and a letter suffix, one of either s, m, h, d or w When a player or user is muted they are not allowed to use any discord bot commands (other than admin ones if they have permissions), they can also not run bot commands ingame or message the bot to message discord users. The time between a mutes time expiring and it actually being removed can be from 0-20 seconds which could also be removed in the future, but it's easier this way
Contributor
|
tysssm!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added new discord commands to let you prevent people from using with the bot
Discord commands added:
Each mute requires both a discord user and minecraft name, I could make the discord user optional in the future as currently it has to be a real profile from the server
I've also made a new class called TimeUtil which includes the parser for the time argument. The time argument must be a series of segments with a number prefix and a letter suffix, one of either s, m, h, d or w. There is no ability to give 'permanent' mutes but you can give ones significantly longer than the human lifespan
When a player or user is muted they are not allowed to use any discord bot commands (other than admin ones if they have permissions), they can also not run bot commands ingame or use the bot-discord message feature.
The time between a mute expiration and it actually being removed can be from 0-20 seconds which could also be removed in the future, but it's easier this way
There is also a new collection in the database called 'mutes' which stores them