Tip
In most cases, each folder represents a custom package.
Follow these steps to add your custom package to BallsDex(we will use broadcast as example):
- Navigate to the
ballsdex/packagesdirectory.
- Download the necessary files from this repository.
- In this case, please download the folder named
broadcast. - Place the whole folder into the
ballsdex/packagesdirectory.
- Open the
config.ymlfile in your BallsDex project. - Add the path to your custom package in the configuration.
packages:
- ballsdex.packages.broadcast- Ensure your bot is configured to load the custom package.
- Restart your bot to apply the changes.
- Check the bot logs to ensure the custom package is loaded without errors.
- Use the bot commands to verify the custom functionality is working as expected.
By following these steps, you can successfully add and use the custom package in BallsDex.
All files have only been tested in version 2.26.2 and may have errors due to translation issues. The English version of the code you are looking at may not work because it has never been run on my bot. You can fix the error and open a PR or contact me to see if there is a way to fix it.