Creating Custom Themes
Creating The Custom Theme File
To being creating a custom theme, navigate to the \Data\Themes
directory.
Once in this directory, create a text file which is where you will put your theme.
Note - the name of this file will be the name of your theme.
Creating The Theme
As an example we will be using the ascii text below generated from here.
.aMMMb dMP dMP .dMMMb dMMMMMMP .aMMMb dMMMMMMMMb dMMMMMMP dMP dMP dMMMMMP dMMMMMMMMb dMMMMMP
dMP"VMP dMP dMP dMP" VP dMP dMP"dMP dMP"dMP"dMP dMP dMP dMP dMP dMP"dMP"dMPdMP
dMP dMP dMP VMMMb dMP dMP dMP dMP dMP dMP dMP dMMMMMP dMMMP dMP dMP dMPdMMMP
dMP.aMP dMP.aMP dP .dMP dMP dMP.aMP dMP dMP dMP dMP dMP dMP dMP dMP dMP dMPdMP
VMMMP" VMMMP" VMMMP" dMP VMMMP" dMP dMP dMP dMP dMP dMP dMMMMMP dMP dMP dMPdMMMMMP
Once we have adjusted the theme to our liking in our text file we previously set up, we save it and run the changetheme (theme name)
command.
Variables and Colouration
Our custom theming system offers many variables to use in your custom themes to display things such as friend count and guild count, these variables also allow you to change text colour.
To implement variables into your custom themes you must use {}
.
Example: {variable-name}
Below is a list of variables that you can use throughout your custom themes:
{red}: sets the following text to the colour red
{blue}: sets the following text to the colour blue
{cyan}: sets the following text to the colour cyan
{green}: sets the following text to the colour green
{yellow}: sets the following text to the colour yellow
{white}: sets the following text to the colour white
{magenta}: sets the following text to the colour magenta
{black}: sets the following text to the colour black
{bright}: sets the style of the following text to be bright in colour
{dim}: sets the style of the following text to be dim in colour
{reset}: resets all set styles and colours so that the following text will be plain text
{friends}: displays the number of friends the token in the config has
{guilds}: displays the number of guilds the token in the config has
{commands}: displays the number of commands currently in the bot
{prefix}: displays the current set prefix
{version}: displays the current version
{user}: displays the username of the token in the config
{discord}: displays a link to the cheddlatron discord
{customcmds}: displays the number of custom commands currently loaded
{nitrosniper}: displays the true/false value of the nitro sniper set in config
{pinglogger}: displays the true/false value of the pinglogger set in config
{rpc}: displays the true/false value of rpc set in config
{dmlogger}: displays the true/false value of the dm logger set in config
{giveawaysniper}: displays the true/false value of the giveaway sniper set in config
{webhooknotifs}: displays the true/false value of webhook notifications set in config
{afkmode}: displays the true/false value of afkmode set in config
{afkmsg}: displays the current set afk message
{embedmode}: displays what message mode you are using (indent/web)
Note - for these variables to update during the runtime of the bot you need to use the clearcons
or changetheme
commands.
Below is an example displaying the usage of variables using the theme created above:
.aMMMb dMP dMP .dMMMb dMMMMMMP .aMMMb dMMMMMMMMb dMMMMMMP dMP dMP dMMMMMP dMMMMMMMMb dMMMMMP
dMP"VMP dMP dMP dMP" VP dMP dMP"dMP dMP"dMP"dMP dMP dMP dMP dMP dMP"dMP"dMPdMP
dMP dMP dMP VMMMb dMP dMP dMP dMP dMP dMP dMP dMMMMMP dMMMP dMP dMP dMPdMMMP
dMP.aMP dMP.aMP dP .dMP dMP dMP.aMP dMP dMP dMP dMP dMP dMP dMP dMP dMP dMPdMP
VMMMP" VMMMP" VMMMP" dMP VMMMP" dMP dMP dMP dMP dMP dMP dMMMMMP dMP dMP dMPdMMMMMP
Version: {blue}{version} {reset}| Prefix: {dim}{red}{prefix} {reset}| Cmd Count: {bright}{cyan}{commands}
Changing To A Custom Theme
As mentioned earlier, to change to a custom theme you simply use the command
changetheme (theme name here)
in any discord channel.