A collection of stateless utility commands for getting info about various things.
Return the bot's latency.
- Usage:
/latency
zip a file or files
- Usage:
[p]zip [archive_name]
- Restricted to:
BOT_OWNER
Unzips a zip file and sends the extracted files in the channel
- Usage:
[p]unzip
- Restricted to:
BOT_OWNER
Auto update & reload cogs
- Usage:
[p]pull <cogs>
- Restricted to:
BOT_OWNER
Auto update & reload cogs WITHOUT updating dependencies
- Usage:
[p]quickpull <cogs>
- Restricted to:
BOT_OWNER
Refresh 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.
- Usage:
[p]todorefresh <confirm>
- Restricted to:
MOD
- Aliases:
refreshtodo
Throw an unhandled exception
A zero division error will be raised
- Usage:
[p]throwerror
- Slash Usage:
/throwerror
- Restricted to:
BOT_OWNER
Get the source code of a command
- Usage:
[p]getsource <command>
- Restricted to:
BOT_OWNER
Convert text to binary
- Usage:
[p]text2binary <text>
Convert a binary string to text
- Usage:
[p]binary2text <binary_string>
Generate a random number between the numbers specified
- Usage:
[p]randomnum [minimum=1] [maximum=100]
- Aliases:
rnum
Add a reaction to a message
- Usage:
[p]reactmsg <emoji> [message=None]
- Restricted to:
MOD
- Checks:
bot_has_server_permissions
View the bot's logs.
- Usage:
[p]logs [max_pages=50]
- Restricted to:
BOT_OWNER
Get 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.
- Usage:
[p]diskspeed
- Restricted to:
BOT_OWNER
- Aliases:
diskbench
Get a list of servers the specified user is the owner of
- Usage:
[p]isownerof <user_id>
- Restricted to:
BOT_OWNER
- Aliases:
ownerof
Find the closest fuzzy match for a user
- Usage:
[p]closestuser <query>
Find a server by name or ID
- Usage:
[p]getserverid <query>
- Restricted to:
BOT_OWNER
- Aliases:
findserver
Find a channel by ID
- Usage:
[p]getchannel <channel_id>
- Restricted to:
BOT_OWNER
- Aliases:
findchannel
- Checks:
bot_has_server_permissions
Fetch a channelID-MessageID combo and display the message
- Usage:
[p]getmessage <channel_message>
- Restricted to:
BOT_OWNER
- Aliases:
findmessage
- Checks:
bot_has_server_permissions
Find a user by ID
- Usage:
[p]getuser <user_id>
- Aliases:
finduser
Get a user's banner
- Usage:
[p]getbanner [user=None]
Find a webhook by ID
- Usage:
[p]getwebhook <webhook_id>
Get a json file containing all non-bot usernames/ID's in this server
- Usage:
[p]usersjson
- Restricted to:
BOT_OWNER
See which channel is the oldest
- Usage:
[p]oldestchannels [amount=10]
- Checks:
server_only
See which users have been in the server the longest
Arguments
amount:
how many members to display
include_bots:
(True/False) whether to include bots
- Usage:
[p]oldestmembers [amount=10] [include_bots=False]
- Aliases:
oldestusers
- Checks:
server_only
See which users have the oldest Discord accounts
Arguments
amount:
how many members to display
include_bots:
(True/False) whether to include bots
- Usage:
[p]oldestaccounts [amount=10] [include_bots=False]
- Checks:
server_only
View all members that have a specific role
- Usage:
[p]rolemembers <role>
- Checks:
server_only
Clear all voice channels from a server
- Usage:
[p]wipevcs
- Restricted to:
GUILD_OWNER
- Checks:
server_only
Clear all threads from a server
- Usage:
[p]wipethreads
- Restricted to:
GUILD_OWNER
- Checks:
server_only
Get info about an emoji
- Usage:
[p]emojidata <emoji>
Export chat history to an html file
- Usage:
[p]exportchat [channel=operator.attrgetter('channel')] [limit=50] [tz_info=UTC] [military_time=False]
- Restricted to:
GUILD_OWNER
Add/Edit/List/Delete bot emojis
- Usage:
[p]botemojis
- Restricted to:
BOT_OWNER
- Aliases:
botemoji and bmoji
Delete an bot emoji
- Usage:
[p]botemojis delete <emoji_id>
Create a new emoji from an image attachment
If a name is not specified, the image's filename will be used
- Usage:
[p]botemojis add [name=None]
Edit a bot emoji's name
- Usage:
[p]botemojis edit <emoji_id> <name>
Create a new bot emoji from an existing one
- Usage:
[p]botemojis fromemoji <emoji>
- Aliases:
addfrom and addemoji
List all existing bot emojis
- Usage:
[p]botemojis list
Get details about a bot emoji
- Usage:
[p]botemojis get <emoji_id>
Run a pip command from within your bots venv
- Usage:
[p]pip <command>
- Restricted to:
BOT_OWNER
Run a shell command from within your bots venv
- Usage:
[p]runshell <command>
- Restricted to:
BOT_OWNER
View servers your bot is in
- Usage:
[p]servers
- Restricted to:
BOT_OWNER
- Checks:
server_only
Get info about the bot
- Usage:
[p]botinfo
- Cooldown:
1 per 15.0 seconds
Get the bots public IP address (in DMs)
- Usage:
[p]botip
- Restricted to:
BOT_OWNER
Run an internet speed test.
Keep in mind that this speedtest is single threaded and may not be accurate!
Based on PhasecoreX's netspeed cog
- Usage:
[p]ispeed
- Restricted to:
BOT_OWNER
View members in a specified server that are also in this server
- Usage:
[p]shared <server>
- Restricted to:
BOT_OWNER
View servers that the bot and a user are both in together
Does not include the server this command is run in
- Usage:
[p]botshared <user>
- Restricted to:
BOT_OWNER
DM yourself the bot's API keys
- Usage:
[p]viewapikeys
- Restricted to:
BOT_OWNER
Cleanup all the .tmp
files left behind by Red's config
- Usage:
[p]cleantmp
- Restricted to:
BOT_OWNER
View the storage space each cog's saved data is taking up
- Usage:
[p]cogsizes
- Restricted to:
BOT_OWNER
View the storage space each cog's code is taking up
- Usage:
[p]codesizes
- Restricted to:
BOT_OWNER