Skip to content

Latest commit

 

History

History
514 lines (299 loc) · 10.2 KB

File metadata and controls

514 lines (299 loc) · 10.2 KB

VrtUtils

A collection of stateless utility commands for getting info about various things.

/latency (Slash Command)

Return the bot's latency.

  • Usage: /latency

[p]zip

zip a file or files

  • Usage: [p]zip [archive_name]
  • Restricted to: BOT_OWNER

[p]unzip

Unzips a zip file and sends the extracted files in the channel

  • Usage: [p]unzip
  • Restricted to: BOT_OWNER

[p]pull

Auto update & reload cogs

  • Usage: [p]pull <cogs>
  • Restricted to: BOT_OWNER

[p]quickpull

Auto update & reload cogs WITHOUT updating dependencies

  • Usage: [p]quickpull <cogs>
  • Restricted to: BOT_OWNER

[p]todorefresh

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

[p]noping

Toggle whether you want to be pinged

  • Usage: [p]noping
  • Restricted to: MOD
  • Checks: guild_only

[p]nopingset

No Ping subcommands

  • Usage: [p]nopingset
  • Restricted to: ADMIN

[p]nopingset view

List users who have opted out of being pinged

  • Usage: [p]nopingset view
  • Aliases: list
  • Checks: guild_only

[p]nopingset prune

Prune users no longer in the server from the No Ping rule

  • Usage: [p]nopingset prune
  • Checks: guild_only

[p]throwerror (Hybrid Command)

Throw an unhandled exception

A zero division error will be raised

  • Usage: [p]throwerror
  • Slash Usage: /throwerror
  • Restricted to: BOT_OWNER

[p]getsource

Get the source code of a command

  • Usage: [p]getsource <command>
  • Restricted to: BOT_OWNER

[p]text2binary

Convert text to binary

  • Usage: [p]text2binary <text>

[p]binary2text

Convert a binary string to text

  • Usage: [p]binary2text <binary_string>

[p]randomnum

Generate a random number between the numbers specified

  • Usage: [p]randomnum [minimum=1] [maximum=100]
  • Aliases: rnum

[p]reactmsg

Add a reaction to a message

  • Usage: [p]reactmsg <emoji> [message=None]
  • Restricted to: MOD
  • Checks: bot_has_guild_permissions

[p]cleanadventurealerts

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

[p]teredo

Unobfuscate a Teredo IPv6 address

  • Usage: [p]teredo <ipv6>

[p]logs

View the bot's logs.

  • Usage: [p]logs [max_pages=50]
  • Restricted to: BOT_OWNER

[p]perserverbotprofile

Manage bot's per server bio, banner, and avatar.

  • Usage: [p]perserverbotprofile
  • Restricted to: BOT_OWNER
  • Checks: guild_only

[p]perserverbotprofile banner

Set the bot's banner for this server.

  • Usage: [p]perserverbotprofile banner

[p]perserverbotprofile avatar

Set the bot's avatar for this server.

  • Usage: [p]perserverbotprofile avatar

[p]perserverbotprofile bio

Set the bot's bio for this server.

  • Usage: [p]perserverbotprofile bio [bio]

[p]diskspeed

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

[p]nohoist

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

[p]isownerof

Get a list of servers the specified user is the owner of

  • Usage: [p]isownerof <user_id>
  • Restricted to: BOT_OWNER
  • Aliases: ownerof

[p]setcooldown

Set a cooldown for the current channel

  • Usage: [p]setcooldown <cooldown> [channel=None]
  • Checks: guild_only

[p]closestuser

Find the closest fuzzy match for a user

  • Usage: [p]closestuser <query>

[p]getguildid

Find a guild by name or ID

  • Usage: [p]getguildid <query>
  • Restricted to: BOT_OWNER
  • Aliases: findguild

[p]getchannel

Find a channel by ID

  • Usage: [p]getchannel <channel_id>
  • Restricted to: BOT_OWNER
  • Aliases: findchannel
  • Checks: bot_has_guild_permissions

[p]getmessage

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

[p]getuser

Find a user by ID

  • Usage: [p]getuser <user_id>
  • Aliases: finduser

[p]getbanner

Get a user's banner

  • Usage: [p]getbanner [user=None]

[p]getwebhook

Find a webhook by ID

  • Usage: [p]getwebhook <webhook_id>

[p]usersjson

Get a json file containing all non-bot usernames/ID's in this guild

  • Usage: [p]usersjson
  • Restricted to: BOT_OWNER

[p]oldestchannels

See which channel is the oldest

  • Usage: [p]oldestchannels [amount=10]
  • Checks: guild_only

[p]oldestmembers

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

[p]oldestaccounts

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

[p]rolemembers

View all members that have a specific role

  • Usage: [p]rolemembers <role>
  • Checks: guild_only

[p]wipevcs

Clear all voice channels from a server

  • Usage: [p]wipevcs
  • Restricted to: GUILD_OWNER
  • Checks: guild_only

[p]wipethreads

Clear all threads from a server

  • Usage: [p]wipethreads
  • Restricted to: GUILD_OWNER
  • Checks: guild_only

[p]emojidata

Get info about an emoji

  • Usage: [p]emojidata <emoji>

[p]samplevoters

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

[p]filterdelete

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

[p]exportchat

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

[p]botemojis

Add/Edit/List/Delete bot emojis

  • Usage: [p]botemojis
  • Restricted to: BOT_OWNER
  • Aliases: botemoji and bmoji

[p]botemojis add

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]

[p]botemojis get

Get details about a bot emoji

  • Usage: [p]botemojis get <emoji_id>

[p]botemojis fromemoji

Create a new bot emoji from an existing one

  • Usage: [p]botemojis fromemoji <emoji>
  • Aliases: addfrom and addemoji

[p]botemojis list

List all existing bot emojis

  • Usage: [p]botemojis list

[p]botemojis delete

Delete an bot emoji

  • Usage: [p]botemojis delete <emoji_id>

[p]botemojis edit

Edit a bot emoji's name

  • Usage: [p]botemojis edit <emoji_id> <name>

[p]pip

Run a pip command from within your bots venv

  • Usage: [p]pip <command>
  • Restricted to: BOT_OWNER

[p]runshell

Run a shell command from within your bots venv

  • Usage: [p]runshell <command>
  • Restricted to: BOT_OWNER

[p]guilds

View guilds your bot is in

  • Usage: [p]guilds
  • Restricted to: BOT_OWNER
  • Checks: guild_only

[p]botinfo

Get info about the bot

  • Usage: [p]botinfo
  • Cooldown: 1 per 15.0 seconds

[p]botip

Get the bots public IP address (in DMs)

  • Usage: [p]botip
  • Restricted to: BOT_OWNER

[p]ispeed

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

[p]shared

View members in a specified server that are also in this server

  • Usage: [p]shared <server>
  • Restricted to: BOT_OWNER

[p]botshared

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

[p]viewapikeys

DM yourself the bot's API keys

  • Usage: [p]viewapikeys
  • Restricted to: BOT_OWNER

[p]deleteapikey

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

[p]cleantmp

Cleanup all the .tmp files left behind by Red's config

  • Usage: [p]cleantmp
  • Restricted to: BOT_OWNER

[p]cogsizes

View the storage space each cog's saved data is taking up

  • Usage: [p]cogsizes
  • Restricted to: BOT_OWNER

[p]codesizes

View the storage space each cog's code is taking up

  • Usage: [p]codesizes
  • Restricted to: BOT_OWNER