Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Structure of config.yml

ZeroTwoReallyLovesLollipop edited this page Apr 10, 2023 · 2 revisions

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.

Dicord bot node (bot):

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 if use_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)

OpenAI node (open_ai):

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 only gpt-3.5-turbo is available for chat completition, gpt-4 could 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

Text answers node (text):

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 of prefix.help
  • hello (String): The answer of prefix.hello
  • version (String): The answer of prefix.version
  • reset_error (String): The answer of prefix.reset when the prompt of the chatbot is empty so it can reboot the prompt
  • reset_success (String): The answer of prefix.reset when the prompt of the chatbot is reset successfuly
  • role_changed (String): The answer of prefix.change_role
  • copypasta (List of string): This contains a list of copypastas, when prefix.copypasta occurs the bot will pick randomly one of the copypastas in the list

Bot commands node (command):

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 for prefix.help command
  • hello (String): The name for prefix.hello command
  • copypasta (String): The name for prefix.copypasta command
  • version (String): The name for prefix.version command
  • ask (String): The name for prefix.ask command
  • ask_tts (String): The name for prefix.ask.ask_tts command
  • reset (String): The name for prefix.reset command
  • change_role (String): The name for prefix.change_role command

Clone this wiki locally