Skip to content

New discord commands for preventing players using the bot#145

Merged
hablethedev merged 1 commit into
LegitiDevs:masterfrom
ThisIsMyName314:branch2
Jul 18, 2026
Merged

New discord commands for preventing players using the bot#145
hablethedev merged 1 commit into
LegitiDevs:masterfrom
ThisIsMyName314:branch2

Conversation

@ThisIsMyName314

Copy link
Copy Markdown
Contributor

Added new discord commands to let you prevent people from using with 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. 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

…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
@omrih4
omrih4 requested a review from hablethedev July 18, 2026 14:36
@hablethedev

Copy link
Copy Markdown
Contributor

tysssm!!

@hablethedev
hablethedev merged commit d2f8e54 into LegitiDevs:master Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants