If your character name includes whitespace, always surround it with "double quotes"
Create a character by typing +char add [name] [displayname] [picture_url]
Create an npc by typing +char add [name] [displayname] [picture_url] npc
Select a character/make it active with +char [name]
Write a message with your active character by writing ++ [your_message]
Write a message with another character by writing ++ [name] [your_message]
List all your created character with +char list
Show a character's configuration with +char info [name] (name can be omitted if you have an active char)
Edit a character with +char edit [name] [attribute] [new_value]
Delete a character by typing +char delete [name] (careful)
- Create a discord application/bot on the https://discord.com/developers site
- Pull this repository and
cdto it - set up the config file (see below)
- To start the bot
docker-compose up -d - To stop the bot
docker-compose down
- If you want to use a venv set it up and activate it now
- Install
discord.pyandsqlalchemy(pip install -U -r requirements.txt) - To start the bot:
cd src->python3 -u bot.py - To stop the bot:
Ctrl+Cor use the bot admin command+stop
- copy the
state/config.json.sampletostate/config.jsonand enter your settings bot_keyis your bot token of your discord application- example:
"bot_key": "abcd1234",
- example:
adminsis a list of IDs of discord users that can use the admin commands (on the server and in DMs)- example:
"admins": [123456789, 987654321],
- example:
admin_rolesis a list of IDs of discord roles that can use the admin commands (on the server only)- example:
"admin_roles": [123456789, 987654321],
- example:
ranksis a list of IDs of discord roles that represent the different guild ranks (colors)- Important: This list has to be ordered from "highest" rank (first) to "lowest" rank (last)
- example:
"ranks": [123, 456, 789, 258, 964],
mainguildis the id of the discord server/guild where the bot will be run in- example:
"mainguild": 123456789,
- example: