Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Additional configuration

drizzle-mizzle edited this page Sep 20, 2023 · 31 revisions

Config settings description

OBSOLETE! Will be updated later

  • If you want to give other users ability to configure the bot, give them a role and place its name in discord_bot_role.

    • (if bot has a Manage Roles permission, it can create this role by itself in the moment when it will join the server)
  • Specify call prefixes in discord_bot_call_prefixes.

  • ⚡Specify command subprefix in discord_bot_command_subprefix.

    • e.g. .ai #reset where .ai is a call prefix and # is command subprefix
    • It's needed so you would not accidentally trigger the command when you talk with a character
  • Specify name for the category with private channels in discord_private_category_name.

  • ⚡Specify default_audience_mode with 1/2/3 if you want it to be enabled by default on the bot launch.

  • audience_mode_quote_format - Custom quote format for the audience mode. Change it if you talk with your characters on the language that is different from English, or if you need some specific format for RP.

  • audience_mode_username_format - Custom username format for the audience mode.

  • Specify default_no_permission_file with a name of the gif/image you want to be shown when non-privileged user tries to execute bot commands (or just leave it empty to disable it).

  • Set private_chat_role_required to true if you don't want to allow users wihout bot role to create private channels.

  • Set use_character_avatar to false if you want to prevent bot from using character's avatar.

  • Set use_character_name to false if you want to prevent bot from using character's name.

  • Set description_in_playing_status to false if you want to prevent bot from using short character desctiptions in playing status.

  • Set allow_dm to false if you want to prevent bot from replying on direct messages.

  • Specify rate_limit with an amount of maximum allowed messages per minute for each user.

  • Specify default_replies_delay with a time (in seconds) you want your characters to wait before responding. Useful for channels where you have two characters talk to each other.

  • Set enable_swipe_buttons to false if you want to disable answers swiping.

  • Set enable_stop_button to false if you want to disable stop buttons. These are needed so bot would ignore the next message from another bot, when one pressed, which will interrupt their conversation.

  • Specify buttons_remove_delay with a time (in seconds) when swipe buttons should be automatically removed (you can set it to 0 to disable it completely, but it can cause a problem when buttons on some old messages (which can't be swiped anymore) do not disappear at all).

  • Set auto_setup to true and specify auto_char_id with id of a character if you want the bot to set character automatically after every relaunch.

  • Specify custom_chrome_directory with a path you want bot to download chrome into. Can be used for several bots at once for space saving.

    • ex. Linux: "~/some_folder/chrome_browser_folder";
    • ex. Windows (double slash required): "C:\\some_folder\\chrome_browser_folder".
  • Specify custom_chrome_executable_full_path with a full path to predownloaded chrome/chromium executable file (it will overwrite custom_chrome_directory setting). Use it if you want bot to use one of your pre-installed browsers, or if you have issues with an embedded one. You can download it here.

    • ex. Linux: "~/some_folder/chrome_browser_folder/chrome";
    • ex. Windows (double slash required): "C:\\some_folder\\chrome_browser_folder\\chrome.exe".
  • public_mode and hoster_discord_id - see Public mode.

  • Set enable_translate_button to true and specify deepl_api_token with your DeepL API token if you want to use embedded messages translator.

  • Specify default_translate_language with a language you want translate button to translate messages on by default.

  • Specify discord_error_log_channel_id with ID of a channel you want bot to send error messages to.

    • (experimental, not all errors can be captured)
  • Set enable_cai_plus_mode to true if you want your bot to use c.ai+ paid API

Clone this wiki locally