-
Notifications
You must be signed in to change notification settings - Fork 1
Command Reference
medeor413 edited this page Nov 6, 2018
·
16 revisions
This page lists all commands and their arguments.
An argument in (parentheses) is required, while an argument in [brackets] is optional.
- Purge:
- Syntax:
Purge (count) [match] [-u/--user USER] [-r/--regex] [-v/--verbose] [-e/--emulate/--dryrun] [-b/--before message_id] [-a/--after message_id] - Aliases:
Prune - Permissions:
MANAGE_MESSAGES - Description: Purges
countmessages from the channel it's used in. Optionally search the messages formatchand only delete messages that match. - Flags:
- With
-[-u]ser (user), the bot will only delete messages from the specified user. - With
-[-b]efore (msg_id), only messages before the given message ID will be deleted. - With
-[-a]fter (msg_id), only messages after the given message ID will be deleted. - With
-[-r]egex,matchis interpreted as a regular expression for more powerful matching. - With
-[-v]erbose, complete information on deleted messages is dumped into the bot log. - With
-[-e]mulate, the bot will count and return the messages that would be deleted with the match string.
- With
- Syntax:
- LogEvent:
- Syntax:
LogEvent [add/remove (event)] - Permissions:
MANAGE_GUILD - Description: Adds or removes event types to be logged by
logger, or lists valid event types if none specified.
- Syntax:
- UpdateName:
- Syntax:
UpdateName (username?) (name) - Permissions:
MANAGE_GUILD(BOT_MAINTAINERis required to change the bot's username) - Description: Changes the bot's nickname (or username if
username?is true) to the given name. - Can be used in DMs.
- Syntax:
- UpdateAvatar:
- Syntax:
UpdateAvatar (URL) - Permissions:
BOT_MAINTAINER, MANAGE_GUILD - Description: Changes the avatar of the bot to the image at
URL. - Can be used in DMs.
- Syntax:
- GetConfig:
- Syntax:
GetConfig (path/to/value) [-f/--file file] - Permissions:
BOT_MAINTAINER, MANAGE_GUILD - Description: Displays the value at the specified config path.
- Flags:
- With
-[-f]ile (file), GetConfig will read and return from the specified plugin config/storage file instead ofconfig.json.
- With
- Can be used in DMs.
- Syntax:
- SetConfig:
- Syntax:
SetConfig (path/to/value) (value or -r/--remove) [-a/--append] [-k/--addkey key_name] [-t/--type type] [-f/--file file] - Permissions:
BOT_MAINTAINER, MANAGE_GUILD - Description: Changes the config value at the specified path to the specified value.
- Flags:
- With
-[-f]ile, SetConfig will write to the specified plugin config/storage file instead ofconfig.json. - With
-[-r]emove, SetConfig will delete the specified key instead of editing it. - With
-[-a]ppend, SetConfig will appendvalueto the specified array instead of overwriting it. - With
--add[k]ey (key), SetConfig will add"key": valueto the specified object instead of overwriting it. - With
-[-t]ype (type), SetConfig will ignore type-checking and forcevalueto be the specified type.
- With
- Can be used in DMs.
- Syntax:
- Activate:
- Syntax:
Activate (plugin) [permanent] - Permissions:
BOT_MAINTAINER - Description: Activates the specified inactive plugin. If
permanentis true, the plugin will be loaded on subsequent restarts as well. - Can be used in DMs.
- Syntax:
- Deactivate:
- Syntax:
Deactivate (plugin) [permanent] - Permissions:
BOT_MAINTAINER - Description: Deactivates the specified active plugin. Note that you cannot deactivate bot_management. If
permanentis true, the plugin will not be loaded on subsequent restarts as well. - Can be used in DMs.
- Syntax:
- ReloadPlugin:
- Syntax:
ReloadPlugin (plugin) - Permissions:
BOT_MAINTAINER - Description: Reloads an active plugin, clearing out its in-memory data and pulling in code edits.
- Can be used in DMs.
- Syntax:
- ListPlugins:
- Syntax:
ListPlugins - Permissions:
BOT_MAINTAINER - Description: Lists all plugins and their activation status.
- Can be used in DMs.
- Syntax:
- Exec:
- Syntax:
Exec (code in code block) - Permissions:
BOT_MAINTAINER - Description: Executes the given Python code in the plugin's context. Prints anything written to
self.res.aefis included as an alias forasyncio.ensure_future. - Can be used in DMs.
- Syntax:
- Shutdown:
- Syntax:
Shutdown - Permissions:
MANAGE_GUILD - Description: Shuts down the bot.
- Can be used in DMs.
- Syntax:
- GetChannel:
- Syntax:
GetChannel [type] - Permissions:
MANAGE_GUILD - Description: Retrieves the channel of the specified type, or all channel types for the server if none specified.
- Syntax:
- SetChannel:
- Syntax:
SetChannel (type) [channel] - Permissions:
MANAGE_GUILD - Description: Sets the specified channel type to the specified channel. If
channelis a text channel, use a mention. Ifchannelis a voice channel, use its name. Ifchannelis missing, unsets the channel for that type.
- Syntax:
- GetCategory:
- Syntax:
GetCategory [category] - Permissions:
MANAGE_GUILD - Description: Gets all channels in the specified category, or lists categories if none specified.
- Syntax:
- AddToCategory:
- Syntax:
AddToCategory (category) (channel) [channel2] ... - Permissions:
MANAGE_GUILD - Description: Adds the listed channels to the specified category. If the category starts with
voice,channelare the names of the voice channels, otherwise, they are text channel mentions.
- Syntax:
- RMFromCategory:
- Syntax:
RmFromCategory (category) (channel) [channel2] ... - Permissions:
MANAGE_GUILD - Description: Removes the listed channels from the specified category. If the category starts with
voice,channelare the names of the voice channels, otherwise, they are text channel mentions.
- Syntax:
- Help:
- Syntax:
Help [command/category] - Description: Lists information about a command, commands in a category, or lists categories.
- Syntax:
- About:
- Syntax:
About - Description: Displays information about the Red Star bot.
- Syntax:
- CreateRole:
- Syntax:
CreateRole (name) (ROLE) [-n/--name string] [-c/--colour FFFFFF] [-h/--hoist bool] [-m/--mentionable bool] [-p/--position int] - Permissions:
MANAGE_ROLES - Description: Creates a new role named
namebased onROLEwith the given parameters. - Flags:
- With
-[-n]ame (string), the new role's name will be set tostring. - With
-[-c]olo[u]r (hexcode), the new role's color will be set tohexcode. - With
-[-h]oist (bool), the new role's "display separately" status will be set tobool. - With
-[-m]entionable (bool), the new role's mentionability will be set tobool. - With
-[-p]osition (index), the new role's position in the role list will be set toindex.
- With
- Syntax:
- EditRole:
- Syntax: `EditRole (ROLE) [-n/--name string] [-c/--colour FFFFFF] [-h/--hoist bool] [-m/--mentionable bool]
- Permissions:
MANAGE_ROLES - Description: Edits
ROLEwith the given parameters. - Flags:
- With
-[-n]ame (string), the new role's name will be set tostring. - With
-[-c]olo[u]r (hexcode), the new role's color will be set tohexcode. - With
-[-h]oist (bool), the new role's "display separately" status will be set tobool. - With
-[-m]entionable (bool), the new role's mentionability will be set tobool. - With
-[-p]osition (index), the new role's position in the role list will be set toindex.[-p/--position int]`
- With
- DeleteRole:
- Syntax:
DeleteRole (ROLE) [position] - Permissions:
MANAGE_ROLES - Description: Deletes
ROLE, in the specified position if there's more than one with the same name.
- Syntax:
- RoleInfo:
- Syntax:
RoleInfo (ROLE) - Aliases:
InfoRole - Description: Returns detailed information about
ROLE.
- Syntax:
- ListRoles:
- Syntax:
ListRoles - Aliases:
ListRole - Permissions:
MANAGE_ROLES - Description: Lists every role on the server. Potentially very long, so limited access.
- Syntax:
- CreateCC:
- Syntax:
CreateCC [-s/--source [name]] (name) (contents or file) - Aliases:
NewCC - Description: Creates a Custom Command with name
nameand outputcontents. See the Custom Commands page for more information. A JSON file can be uploaded in place of the name and contents. - Flags:
- With
-[-s]ource [name], the attached file will be considered RSLisp source code instead of a JSON CC dump, and given the namename, or the filename if not specified.
- With
- Syntax:
- EditCC:
- Syntax:
EditCC [-s/--source [name]] (name) (contents) - Permissions:
MANAGE_MESSAGES(for editing others' CCs) - Description: Changes the output of Custom Command
nametocontents. A JSON file can be uploaded in place of the name and contents. - Flags:
- With
-[-s]ource [name], the attached file will be considered RSLisp source code instead of a JSON CC dump, and given the namename, or the filename if not specified.
- With
- Syntax:
- DeleteCC:
- Syntax:
DeleteCC (name) - Aliases:
DelCC, RMCC - Permissions:
MANAGE_MESSAGES(for deleting others' CCs) - Description: Deletes the Custom Command
name
- Syntax:
- CCInfo:
- Syntax:
CCInfo (name) - Description: Displays information about Custom Command
name.
- Syntax:
- DumpCC:
- Syntax:
DumpCC (name) - Description: Dumps the specified Custom Command to a JSON file.
- Syntax:
- SearchCCs:
- Syntax:
SearchCCs (search) - Aliases:
SearchCC, ListCCs, ListCC - Description: Returns a list of Custom Commands with names or authors matching
search. Ifsearchis*, returns all Custom Commands.
- Syntax:
- LockCC:
- Syntax:
LockCC (name) - Permissions:
MANAGE_MESSAGES - Description: Toggles the lock on Custom Command
name, preventing it from being used.
- Syntax:
- RestrictCC:
- Syntax:
RestrictCC (name) [category] - Permissions:
MANAGE_MESSAGES - Description: Restricts the usage of the specified Custom Command to the specified category, or clears the restriction if no category is specified.
- Syntax:
- CCMute:
- Syntax:
CCMute (USER) - Aliases:
MuteCC - Permissions:
MANAGE_MESSAGES - Description: Toggles a CC mute on
USER, preventing them from using Custom Commands.
- Syntax:
- CCBan:
- Syntax:
CCBan (USER) - Aliases:
BanCC - Permissions:
MANAGE_MESSAGES - Description: Toggles a CC ban on
USER, preventing them from making or editing Custom Commands.
- Syntax:
- ListCCBans:
- Syntax:
ListCCBans - Permissions:
MANAGE_MESSAGES - Description: Lists all muted or banned users and their status.
- Syntax:
- RPN:
- Syntax:
RPN (expression) - Description: Evaluates an expression in Reverse Polish Notation syntax.
- Syntax:
- EvalCC:
- Syntax:
EvalCC (CC source code) - Permissions:
MANAGE_MESSAGES - Description: Runs the given CC source code without uploading it.
- Syntax:
- JoinVoice:
- Syntax:
JoinVoice - Aliases:
JoinVC - Description: Causes the bot to join the voice channel you're in.
- Syntax:
- LeaveVoice:
- Syntax:
LeaveVoice - Aliases:
LeaveVC - Permissions:
MUTE_MEMBERS(to make the bot leave if music is playing) - Description: Causes the bot to leave the voice channel.
- Syntax:
- PlaySong:
- Syntax:
PlaySong (URL or search string) - Aliases:
Play - Description: Plays the song specified in the voice channel.
- Syntax:
- PauseSong:
- Syntax:
PauseSong - Aliases:
Pause, ResumeSong, Resume - Description: Toggles pause on the currently playing song.
- Syntax:
- SkipSong:
- Syntax:
SkipSong - Aliases:
Skip - Permissions:
MUTE_MEMBERS(for instant skipping) - Description: Votes to skip the currently playing song.
- Syntax:
- SongVolume:
- Syntax:
SongVolume [0-100] - Aliases:
Volume - Description: Sets the volume to the given number, or prints the current volume.
- Syntax:
- StopMusic:
- Syntax:
StopMusic - Aliases:
StopSong, Stop - Permissions:
MUTE_MEMBERS - Description: Stops the current song and empties the queue.
- Syntax:
- DeleteSong:
- Syntax:
DeleteSong (index) - Aliases:
DelSong,RMSong - Permissions:
MUTE_MEMBERS - Description: Deletes the song at
indexin the queue.
- Syntax:
- SongMode:
- Syntax:
SongMode [n/normal|rs/repeat_song|rq/repeat_queue|s/shuffle|sr/shuffle_repeat] - Aliases:
Shuffle, Repeat - Description: Sets the playback mode of the bot;
normalplays songs in order, removing them as it does;repeat_songrepeats the same song continuously;repeat_queueplays songs in order, inserting them into the end of the queue after playback;shuffleplays the songs in random order, removing them as it does;shuffle_repeatis a combination ofshuffleandrepeat_queue.
- Syntax:
- SongQueue:
- Syntax:
SongQueue - Aliases:
Queue - Description: Prints out the song queue.
- Syntax:
- NowPlaying:
- Syntax:
NowPlaying - Aliases:
SongInfo - Description: Prints detailed information about the currently playing song in a pretty-formatted embed.
- Syntax:
- MusicBan:
- Syntax:
MusicBan (USER) - Permissions:
MUTE_MEMBERS - Description: Toggles a music ban on
user, preventing them from using music-bot commands.
- Syntax:
- MusicConfig:
- Syntax:
MusicConfig [option (value)] - Permissions:
MANAGE_GUILD - Description: Allows the editing of per-server config options for the music player, or lists the current configuration. Allowed values are
idle_disconnect_time (int),max_queue_length (int),max_video_length (seconds),print_queue_on_edit (bool), andvote_skip_threshold (decimal).
- Syntax:
- StartVote:
- Syntax:
StartVote (HID) (Query) [Responses, up to 20] [-1/--question (str), up to 20] [-v/vote_limit (int)] [-n/--no_retracting] - Description: Starts a poll. HID is used to interact with the poll, so make sure it's simple and memorable. Arguments can be wrapped in quotes for multi-word questions or answers.
- Flags:
- With
-1/--question (str), you can define responses non-positionally. - With
-[-v]ote_limit (int), you can allow users to vote up for up tointdifferent options, or all ifintis 0. - With
-[-n]o_retracting, you can prevent users from being able to change their vote.
- With
- Syntax:
- Vote:
- Syntax:
Vote (HID) (option) - Aliases:
UpVote - Description: Votes on poll
HIDfor optionoption, which should be a single letter.
- Syntax:
- DownVote:
- Syntax:
DownVote (HID) (option) - Description: Removes your vote on
optionon pollHID, if you had one.
- Syntax:
- EndVote:
- Syntax:
EndVote (HID) - Permissions:
MANAGE_MESSAGES(to end others' polls) - Description: Ends vote
HIDand displays the results.
- Syntax:
- Remind
- Syntax:
Remind (reminder) [-d/--delay DD//@HH:MM:SS] [-t/--time DD/MM/YYYY@HH:MM:SS] [-r/--recurring y/m/d###] [-p/--private] - Description: Schedules a reminder. When
--timeis reached or--delayhas passed, the bot will ping you withreminder. Either--delayor--timemust be specified. When writing times, unneeded numbers may be skipped as long as the separators are intact;08:00:00and8::are functionally equivalent. - Flags:
- With
-[-d]elay DD//@HH:MM:SS, the reminder will be set to trigger at the given amount of time in the future. - With
-[-t]ime DD/MM/YYYY@HH:MM:SS, the reminder will be set to trigger at the given time. Must be in the future. - With
-[-r]ecurring y/m/d###. the bot will automatically reschedule the reminder for the given amount of time in the future once it has triggered. - With
-[-p]rivate, the bot will send you a Direct Message with the reminder instead of posting it in a public channel.
- With
- Syntax:
- RemindList
- Syntax:
RemindList [del/delete/- (index)] - Description: Prints out all of your currently scheduled reminders. When used with the
deleteargument, deletes the reminder atindex.
- Syntax:
- TestMotDs:
- Syntax:
TestMotDs (month) (day) (weekday) - Permissions:
MANAGE_GUILD - Description: Outputs all valid MotDs for the given date.
- Syntax:
- LastError:
- Syntax:
LastError (command/event/unhandled) - Permissions:
MANAGE_GUILD - Description: Prints the last error to occur in the specified context.
- Can be used in DMs.
- Syntax:
- AddMotD:
- Syntax:
AddMotD (month) (day) (line) - Permissions:
MANAGE_GUILD - Description: Adds an MotD for the specified date.
- Syntax:
- AddHoliday:
- Syntax:
AddHoliday (month) (day) - Permissions:
MANAGE_GUILD - Description: Adds a holiday on the specified date.
- Syntax: