A collection of stateless utility commands for getting info about various things.
Return the bot's latency.
/latencyzip a file or files
.zip [archive_name]BOT_OWNERUnzips a zip file and sends the extracted files in the channel
.unzipBOT_OWNERAuto update & reload cogs
.pull <cogs>BOT_OWNERAuto update & reload cogs WITHOUT updating dependencies
.quickpull <cogs>BOT_OWNERRefresh a todo list channel.
Bring all messages without a ✅ or ❌ to the front of the channel.
WARNING: DO NOT USE THIS COMMAND IN A BUSY CHANNEL.
.todorefresh <confirm>MODrefreshtodoToggle whether you want to be pinged
.nopingMODserver_onlyNo Ping subcommands
.nopingsetADMINPrune users no longer in the server from the No Ping rule
.nopingset pruneserver_onlyList users who have opted out of being pinged
.nopingset viewlistserver_onlyThrow an unhandled exception
A zero division error will be raised
.throwerror/throwerrorBOT_OWNERGet the source code of a command
.getsource <command>BOT_OWNERConvert text to binary
.text2binary <text>Convert a binary string to text
.binary2text <binary_string>Generate a random number between the numbers specified
.randomnum [minimum=1] [maximum=100]rnumAdd a reaction to a message
.reactmsg <emoji> [message=None]MODbot_has_server_permissionsPrune adventure alerts from members no longer in the server
This command requires the AdventureAlert cog by TrustyJAID to be loaded.
https://github.com/TrustyJAID/Trusty-cogs/tree/master
.cleanadventurealertsADMINView the bot's logs.
.logs [max_pages=50]BOT_OWNERGet disk R/W performance for the server your bot is on
The results of this test may vary, Python isn't fast enough for this kind of byte-by-byte writing,
and the file buffering and similar adds too much overhead.
Still this can give a good idea of where the bot is at I/O wise.
.diskspeedBOT_OWNERdiskbenchDehoist all nicknames in the server
Arguments
confirm: (True/False) whether to confirm the action
Run with confirm False to see which nicknames would be reset.
Users will be dehoisted IF:
!, $, (, ), *)Examples
.nohoist true
.nohoist <confirm>ADMINbot_has_server_permissions and server_onlyGet a list of servers the specified user is the owner of
.isownerof <user_id>BOT_OWNERownerofSet a cooldown for the current channel
.setcooldown <cooldown> [channel=None]server_onlyFind the closest fuzzy match for a user
.closestuser <query>Find a server by name or ID
.getserverid <query>BOT_OWNERfindserverFind a channel by ID
.getchannel <channel_id>BOT_OWNERfindchannelbot_has_server_permissionsFetch a channelID-MessageID combo and display the message
.getmessage <channel_message>BOT_OWNERfindmessagebot_has_server_permissionsFind a user by ID
.getuser <user_id>finduserGet a user's banner
.getbanner [user=None]Find a webhook by ID
.getwebhook <webhook_id>Get a json file containing all non-bot usernames/ID's in this server
.usersjsonBOT_OWNERSee which channel is the oldest
.oldestchannels [amount=10]server_onlySee which users have been in the server the longest
Arguments
include_bots: (True/False) whether to include bots
.oldestmembers [include_bots=False]oldestusersserver_onlySee which users have the oldest Discord accounts
Arguments
include_bots: (True/False) whether to include bots
.oldestaccounts [include_bots=False]server_onlyView all members that have a specific role
.rolemembers <role>server_onlyClear all voice channels from a server
.wipevcsGUILD_OWNERserver_onlyClear all threads from a server
.wipethreadsGUILD_OWNERserver_onlyGet info about an emoji
.emojidata <emoji>Select a random sample of voters from a message
Arguments
message: The message to sample voters from
emoji: The emoji to sample voters from
sample_size: The number of voters to select
Examples
.samplevoters 1234567890 🎉 5
.samplevoters <message> <emoji> [sample_size=10] [mention=False]choosereactDelete all messages containing a keyword in a channel
Arguments
channel: The channel to delete messages from
filters: The keywords to filter messages by, separated by new lines
.filterdelete <channel> <filters>ADMINExport chat history to an html file
.exportchat [channel=operator.attrgetter('channel')] [limit=50] [tz_info=UTC] [military_time=False]GUILD_OWNERAdd/Edit/List/Delete bot emojis
.botemojisBOT_OWNERbotemoji and bmojiCreate a new bot emoji from an existing one
.botemojis fromemoji <emoji>addfrom and addemojiList all existing bot emojis
.botemojis listDelete an bot emoji
.botemojis delete <emoji_id>Edit a bot emoji's name
.botemojis edit <emoji_id> <name>Create a new emoji from an image attachment
If a name is not specified, the image's filename will be used
.botemojis add [name=None]Get details about a bot emoji
.botemojis get <emoji_id>Run a pip command from within your bots venv
.pip <command>BOT_OWNERRun a shell command from within your bots venv
.runshell <command>BOT_OWNERView servers your bot is in
.serversBOT_OWNERserver_onlyGet info about the bot
.botinfo1 per 15.0 secondsGet the bots public IP address (in DMs)
.botipBOT_OWNERRun an internet speed test.
Keep in mind that this speedtest is single threaded and may not be accurate!
Based on PhasecoreX's netspeed cog
.ispeedBOT_OWNERView members in a specified server that are also in this server
.shared <server>BOT_OWNERView servers that the bot and a user are both in together
Does not include the server this command is run in
.botshared <user>BOT_OWNERDM yourself the bot's API keys
.viewapikeysBOT_OWNERCleanup all the .tmp files left behind by Red's config
.cleantmpBOT_OWNERView the storage space each cog's saved data is taking up
.cogsizesBOT_OWNERView the storage space each cog's code is taking up
.codesizesBOT_OWNER