Skip to content

Adding custom commands

ContestedWheel edited this page Aug 23, 2025 · 5 revisions

In this page, I will show you how to add custom commands.

Adding a command

  1. Open your bot folder and go to ballsdex/packages/balls. The directory should look like this:

image

  1. Open cog.py in your text editor and scroll down to the very bottom.

  2. Copy the command you want to add.

Tip

If you want to use GamingAdlerHD's rarity command instead of Nixter's, copy the command in the classic_rarity.py file instead of new_rarity.py.

  1. Follow the GIF below on how to add a new command:

commands

If you didn't get what I did in the GIF, I scrolled all the way down in the file and then pasted in the command.

  1. Save your changes and restart the bot using docker compose restart. Once the bot is back up, the command you added should appear.

If the command doesn't show up, refresh your Discord by pressing CTRL + R on your keyboard (If you're on mobile, close the Discord app then open it again).

Importing

Here used to be a tutorial for importing, but it confused too many people so I have decided to remove it. If you have any importing errors such as NameError: name 'BallSpawnView' is not defined then join the Ballsdex Developers server and go to the #3rd-party-support channel. Either me or someone else will help you with importing stuff.

Clone this wiki locally