The given vars.py file, which is the only file you have to touch if you just want to get your bot to work out of the box, contains the following variables:
TOKEN = ""
BOT_NICK = ""
DELAY = 20
WANTED_CHANNELS = [
"replaceWithYourChannelName",
"addMoreIfNeeded",
]
ALLOW_MEMORY = True
LOGGING = True
PERSONA = ""Quick Note: The specified values of "replaceWithYourChannelName", "addMoreIfNeeded", "dontReplyToThisUser", and "andThisOneToo" are merely placeholders, please understand that. Make sure to change them or remove completely.
Lets quickly run through each of those.
TOKEN- here you enter your bot'sAccess Tokenthat you've gotten from the earlier steps of setting it up;BOT_NICK- here you simply enter your bot's account name or nickname. You don't have to add any other characters to it, like@or something else, just enter the name of the account you created for your bot;DELAY- optional variable, you can leave it as it is. Pretty self-explanatory though, just a delay between each message of your bot. Although, do keep in mind that setting the value too low might result in a temporary suspension of your bot's account, so I would not recommend setting it below 5 seconds;WANTED_CHANNELS- a list of channels where you want your bot to work. It can be just one channel, or it can be many channels, up to you. There is no limit on the amount of channels you can specify there, as far as I'm concerned. Same deal as with the bot nickname, make sure to enter the names of Twitch channels just as they are displayed on their pages, no extra characters;ALLOW_MEMORY- a variable that can be eitherTrueorFalse, meant for switching on and off short-term memory for the bot. If set toTrue, the bot will preserve the context of the conversation. If set toFalse, it will answer to each query independently. Set toTrueby default;LOGGING- a variable that can be eitherTrueorFalse, meant for switching on and off the logging of chat messages. The logs are in.mdformat and are, by default, sent to thelogsfolder in root directory. Feel free to change the path for the logging folder to whichever one you like, just make sure its valid. The list is not exhaustive and will be updated with new names over time.PERSONA- a variable for enabling personification of the model by defining a persona for it either by selecting from the existing list inpersonas.pyor typing in your own prompt (see this), or just leaving it empty to disable the feature. KEEP IN MIND: to select a model from the list, just type in the exact name of it, all in caps, into thePERSONAvariable like so:PERSONA = "GERALT", this will set the persona to the desired one. The list of all available predefined personas can be found inpersonas.pyfile. A guide on how to write your own personas can be found here.