-
Notifications
You must be signed in to change notification settings - Fork 1
Adding custom commands
In this page, I will show you how to add custom commands.
- Open your bot folder and go to
ballsdex/packages/balls. The directory should look like this:

-
Open
cog.pyin your text editor and scroll down to the very bottom. -
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.
- Follow the GIF below on how to add a new command:

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.
- 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).
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.
If you have any errors, join the Ballsdex Developers server by clicking this blue text.