-
Notifications
You must be signed in to change notification settings - Fork 0
Structure of config.yml
The configuration, keys, command names and answer text are saved on the YAML file config.yml , this allows to customize in several ways the bot, or use it in other languages.
This section contains all the configurations for the discord bot, the token must be valid to successfuly logging to Gateway.
-
name(String): Represent the name of the bot (default value = "chat bot") -
token(String): Saves the Discord bot token, it can be obtain in the Discord Developer Portal -
prefix(String): Represent the prefix that will be use in all the commands (default value = "chatbot") -
use_short_prefix(Boolean): Represent if the bot will allow the use of a short prefix, if True all the commands will be able to be executed useing the prefix annd the short prefix (default value = True) -
short_prefix(String): Represent the short prefix that will be use in all the commands ifuse_short_prefix = True(default value = "cb") -
use_copypasta(Boolean): Represent if copypasta command wil be activated, if True the command will be available (default value = True) -
use_ask_tts(Boolean): Represent if ask.tts command wil be activated, if True the command will be available (default value = True)
This section contains all the configuration for the openAI API to work and connect susccessfuly to OpenAI servers.
-
token(String): Saves the OpenAI private key, it can be obtain in the View API Keys -
model(String): Represent the OpenAI model that wil be use for the Chat bot, currently onlygpt-3.5-turbois available for chat completition,gpt-4could be available through regist in the GPT-4 API waitlist -
temperature(String): Represent the temperature of the model, it allows the model to have a less deterministic behavior, more informationa about the temperature in gpt models can be found here -
role(String): Is the role that will be give to the GPT model to change it's behavior, it can contains data that you want the bot to remember, but sometimes the model does not take this data into account, so it is necessary to use Fine-tuning
This section contains the answers for certain commands, this allows to use the bot in other languages or to customize the answers to your server.
-
help(String): The answer ofprefix.help -
hello(String): The answer ofprefix.hello -
version(String): The answer ofprefix.version -
reset_error(String): The answer ofprefix.resetwhen the prompt of the chatbot is empty so it can reboot the prompt -
reset_success(String): The answer ofprefix.resetwhen the prompt of the chatbot is reset successfuly -
role_changed(String): The answer ofprefix.change_role -
copypasta(List of string): This contains a list of copypastas, whenprefix.copypastaoccurs the bot will pick randomly one of the copypastas in the list
This section contains the names of the commands, all the documentation uses the default names of the commands so keep this on mind if you are editings this section, the command list can be found here
-
help(String): The name forprefix.helpcommand -
hello(String): The name forprefix.hellocommand -
copypasta(String): The name forprefix.copypastacommand -
version(String): The name forprefix.versioncommand -
ask(String): The name forprefix.askcommand -
ask_tts(String): The name forprefix.ask.ask_ttscommand -
reset(String): The name forprefix.resetcommand -
change_role(String): The name forprefix.change_rolecommand