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
Toggle whether you want to be pinged
- Usage:
[p]noping - Restricted to:
MOD - Checks:
guild_only
No Ping subcommands
- Usage:
[p]nopingset - Restricted to:
ADMIN
List users who have opted out of being pinged
- Usage:
[p]nopingset view - Aliases:
list - Checks:
guild_only
Prune users no longer in the server from the No Ping rule
- Usage:
[p]nopingset prune - Checks:
guild_only
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_guild_permissions
Prune 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
- Usage:
[p]cleanadventurealerts - Restricted to:
ADMIN
Unobfuscate a Teredo IPv6 address
- Usage:
[p]teredo <ipv6>
View the bot's logs.
- Usage:
[p]logs [max_pages=50] - Restricted to:
BOT_OWNER
Manage bot's per server bio, banner, and avatar.
- Usage:
[p]perserverbotprofile - Restricted to:
BOT_OWNER - Checks:
guild_only
Set the bot's banner for this server.
- Usage:
[p]perserverbotprofile banner
Set the bot's avatar for this server.
- Usage:
[p]perserverbotprofile avatar
Set the bot's bio for this server.
- Usage:
[p]perserverbotprofile bio [bio]
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
Dehoist 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:
- Their nickname starts with a hoist character (e.g.,
!,$,(,),*) - Their nickname starts with a number but not their username
Examples
[p]nohoist true
- Usage:
[p]nohoist <confirm> - Restricted to:
ADMIN - Checks:
bot_has_guild_permissions and guild_only
Get a list of servers the specified user is the owner of
- Usage:
[p]isownerof <user_id> - Restricted to:
BOT_OWNER - Aliases:
ownerof
Set a cooldown for the current channel
- Usage:
[p]setcooldown <cooldown> [channel=None] - Checks:
guild_only
Find the closest fuzzy match for a user
- Usage:
[p]closestuser <query>
Find a guild by name or ID
- Usage:
[p]getguildid <query> - Restricted to:
BOT_OWNER - Aliases:
findguild
Find a channel by ID
- Usage:
[p]getchannel <channel_id> - Restricted to:
BOT_OWNER - Aliases:
findchannel - Checks:
bot_has_guild_permissions
Fetch a channelID-MessageID combo and display the message
- Usage:
[p]getmessage <channel_message> - Restricted to:
BOT_OWNER - Aliases:
findmessage - Checks:
bot_has_guild_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 guild
- Usage:
[p]usersjson - Restricted to:
BOT_OWNER
See which channel is the oldest
- Usage:
[p]oldestchannels [amount=10] - Checks:
guild_only
See which users have been in the server the longest
Arguments
include_bots: (True/False) whether to include bots
- Usage:
[p]oldestmembers [include_bots=False] - Aliases:
oldestusers - Checks:
guild_only
See which users have the oldest Discord accounts
Arguments
include_bots: (True/False) whether to include bots
- Usage:
[p]oldestaccounts [include_bots=False] - Checks:
guild_only
View all members that have a specific role
- Usage:
[p]rolemembers <role> - Checks:
guild_only
Clear all voice channels from a server
- Usage:
[p]wipevcs - Restricted to:
GUILD_OWNER - Checks:
guild_only
Clear all threads from a server
- Usage:
[p]wipethreads - Restricted to:
GUILD_OWNER - Checks:
guild_only
Get info about an emoji
- Usage:
[p]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
[p]samplevoters 1234567890 🎉 5
- Usage:
[p]samplevoters <message> <emoji> [sample_size=10] [mention=False] - Aliases:
choosereact
Delete 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
- Usage:
[p]filterdelete <channel> <filters> - Restricted to:
ADMIN
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
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]
Get details about a bot emoji
- Usage:
[p]botemojis get <emoji_id>
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
Delete an bot emoji
- Usage:
[p]botemojis delete <emoji_id>
Edit a bot emoji's name
- Usage:
[p]botemojis edit <emoji_id> <name>
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 guilds your bot is in
- Usage:
[p]guilds - Restricted to:
BOT_OWNER - Checks:
guild_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
Delete an API key from the bot's config
WARNING: This is irreversible and will delete the key from the bot's config!
- Usage:
[p]deleteapikey <service> - 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