Bot Commands - FormalStatic/CMLBot GitHub Wiki
Set_k_factor
Changes the intensity of elo gain/loss when updating elo! (Almost like an elo multiplier)
/set_k_factor k_factor: 5
Must have admin privileges!
Update_elo
Update elo will take the placement, minimum elo, maximum elo, and calculate the gain/loss for the player!
- User: The players Discord.
- Placement: Players placement in the match (Currently only goes up to 10)
- Min and max elo: It takes the average of both values and calculates it with k_factor and placement. Rather than putting the elo of everyone, it only needs the elo of the highest and lowest.
/update_elo user: @formalstatic placement: 2 min_elo: 1500 max_elo: 1750
Must have manage roles privileges!
Ping
A simple ping and pong command to let you know the command is running.
/ping
Schedule_help
The event time system is very specific, use this command to use the right syntax. Copy and paste into the add_event command. (possible rework in the future)
- Mobile Mode: Sends another invisible message with just time. Press and hold the message. Then, tap copy text!
The method the code uses:
%Y-%m-%d %H:%M:%S
/schedule_help month: June day: 26 year: 2024 hour: 6 minute: 30 td: PM
Must have manage channel permissions!
Add_event
Add an event to the schedule!
- event_name: Name of the event. (Same name can't be used twice!)
- event_time: Time of the event, however, it's very strict on this. If you're confused use /schedule_help!
- time_zone: Timezone of the event. I recommend adding the more common time zones. (NOTE: Only UTC works! Nothing after, for example this does not work: UTC-7)
- channel: The channel you want the announcement in
This will ping the "Events" role when sending the announcement!
/add_event event_name: snipers only event_time: 2024-2-7 19:45 time_zone: UTC channel: #general
Must have manage channel permissions!
Events
Just a simple display of the upcoming events
/events
Remove_event
If you mess something up, or an event got cancelled, you can remove the event. The command will automatically grab all events and show you which ones you can delete.
/remove_event event: snipers only
Must have manage channel permissions!
Elo_set
This sets the elo of a player. Can be used if a player's elo has been lost or accidentally deleted.
/elo_set user:@formalstatic elo:1500
Must have manage roles permissions!
Elo
Just a simple command to check elo!
If the user is left empty it will return the command user.
/elo
Logs are being sent to a secondary server to prevent misuse of the bot