Bot Params

Example

Make your bot customizable

Warning

In the settings tab for the bot, set the name field to something

params.json

{
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        }
    }
}

main.py

from ugly_bot import *

@export("message_direct")
def example():
    message_send(text=getattr(bot_params, "name", "Not Set"))


start()

Glossary