Overrides for Brave Bot @ Development Guide:
Configuration made easy. Made to be easy & simple. All done in your / Brave Bot's config.yml file. There are many overrides in Brave Bot. Work on adding more is always happening. How many will we have? Well technically there is no limit and we are always open to any new override ideas.
Available Overrides:
- Pro Override
- Topia Override
- Forked Mode Override
- Logs Override
- ProButtons Override
- Pro Bonuses Override
- Applications Override
- ProRole Override
- Gambling Commands Override
- Coins Every Message Override
- SMN (Set My Nick) Command Override
- GitLab Integration Override
- ProWelcome Override
- Pro GlobaLogs Override
- DevBlogs Override
- Setup Database Boot Mode Override
- Pro for Users Override
- Pro for Servers Override
- Sentry Integration Override
- Production Mode Override
- Tips Override
- ProButton Previews Override
- Topia Insights Override
- Topia VAT Override
- Pro No VAT Added Override
- Profile Suspensions Override
- Public Bot Override
- Pay To Play Fee Override
- Nuke Command Restrictions Override
Override Impact Types:
Overrides can impact the user expirence. To ensure users are well informed and are not overwhelmed there are only 2 Impact Types.
| Impact Type: | Symbol: | Description: |
|---|---|---|
| Partial | P or (P) | Partially impacts the command. The command may return an ephemeral error message. |
| Full | F or (F) | Command will not run and will just return an ephemeral error message. |
For ease of use we do not really want to add any more Override Impact Types (OITs). This is because Brave Bot is already quite big and complex.
Note
Partial Impact Type Override do not nesccarily return an ephemeral error message.
How to view your Bot's Overrides Configuration:
Do /help and select the help-extra named: Overrides.
Developer Context:
- When an override has been set to:
True, this means the override/system has been enabled.- To enable an override, set it to:
Trueunless it is a semi-automatic override.
- To enable an override, set it to:
- When an override has been set to:
False, this means the override/system has been disabled.- To disable an override, set it to:
Falseunless it is a semi-automatic override.
- To disable an override, set it to:
Checking an Override:
When checking an override you must use the respective function in the utils directory.
- Topia related Override checks will be found in
utils/topia.py - Pro related Override checks will be found in
utils/pro.py - Other Override checks will be found in
utils/overrides.py
There are only 2 Overrides that do not have a function:
- Set my Nickname Command Override.
- Fork Override.
Notes:
ProButtons Override:
For a ProButton to send, you need both the ProButtons Override and the Pro Override to be enabled. Having just one of the overrides enabled will not allow the ProButton to be sent.
Logs Override:
The Logs Override requires your to fill the Logs Channel ID to be filled. (Integer only)
GlobaLogs:
Certain aspects of our Bot are require logging. But this logging is optional for the developer. It is used in our Core Moderation Commands for Transparency (Click Here to Learn More). It is also used for certain Fun Commands, Unknown Error Logs and Reboot Logs.
Note
In your config.yml please ensure you set the field named Logs Channel ID to the Discord Channel ID you want used for GlobaLogs. It is optional and if set to False this override will be set to False regardless.
Pro GlobaLogs Override:
If the Logs Override is set to False. The Pro GlobaLogs Override will also be set to False regardless.
Forked Mode Override:
The Forked Mode Override only has a partial impact on /help. If no extra is selected, the main embed will have a footer telling the user that the bot they are using it is a fork of Brave Bot.
Pro Override:
The Pro Override that checks if there is any Pro Users (User IDs) and Pro Servers (Server IDs) in your config.yml file. The override will automatically decide if the system should be enabled or disabled. Read below to see how and why:
- If there is IDs (items in the list) in either the
pro_usersandpro_serverslists then the override will be set toTrue. - If there is no IDs in one list but the other list has IDs. The override will be set to
True. - If there is no IDs in both lists then the override will be set to
False. - Even if there is IDs in the both or one list, you can still disable the Pro system with the
Pro Override. You can also manually disable thePro for Users OverrideandPro for Servers Overridein yourconfig.yml. Please note if you enable all3overrides but there is no IDs in both lists the overrides will be set to disabled/off.
Pro Role Override:
Please note that the Pro Role Override requires the following if enabled (set to True):
- The
Pro Overrideto be enabled. (Set toTrue) - The
Pro Role IDfield to be filled with your "Pro Role's ID".
Warning
The Pro Role ID must be from the same server you have given the ID for the Server ID field.
Topia Override:
For the Topia System to work the following must be fulfilled:
- The
Topia Overrideis enabled. (Set toTrue) -
The
Setup Database Boot Mode Overrideis enabled on first boot. (Please disable it upon getting confirmation the database has been set-up. Else the database may reset itself upon re-boot) -
If the
Topia Overrideis disabled, a large selection of Brave Bot's Commands will be useless and will not work (they will simply return an ephemeral error message). - Many of Brave Bot's Topia Commands (the ones that have the Topia Override) also have the
Pro Override. This is because there is a Pro Perk included. If thePro Overrideis disabled, the Pro Perk does not occur for the user except for/steal.- This is becuase when both Overrides are enabled, None-Pro Users can only steal up-to
50%of a User's Coin Balance. So when thePro Overrideis disabled we allow Users to steal up-to100%of the User's Coin Balance.
- This is becuase when both Overrides are enabled, None-Pro Users can only steal up-to
Topia Suspensions Override:
If the the Topia Suspensions Override is enabled (set to True), any User in the Suspended Users list will now no longer have Pro or be able to access Topia Commands.
Public Bot Override:
If the Public Bot Override is enabled (set to True) the Bot's Invite link will displayed in /help and in the main Links Button View, which is used across the bot, to allow users to invite the bot to their own server.
Production Mode Override:
If the Production Mode Override is disabled then the code will load Testing Token instead of Token.
Nuke Command Restrictions Override:
If the Nuke Command Restrictions Override is set to True (enabled), the No Nuke Command Servers list field must have at least one item inside.
Note
The items in the No Nuke Command Servers list field must be server/guild IDs.