Skip to content

Discord Bot in Python for the Persistent SS13 Official codebase and game server.

License

Notifications You must be signed in to change notification settings

ingles98/pss13_discordbot

Repository files navigation

Persistent SS13 Discord Bot

A Discord bot written in Python. It handles communications between Discord and the SS13 server.

Official PSS13 Codebase

Installation

git clone https://github.com/ingles98/pss13_discordbot    # clone the repo.
cd pss13_discordbot                                       # cd into the repo.
python3 -m venv venv                                      # (optional) make a virtual environment.
pip install -r requirements.txt                           # install requirements.

Usage

cp config.json.example config.json                        # copy example config over.
python3 Main.py                                           # run the bot.

Configuration

All configuration is handled through config.json. This file is required to run the bot.

{
    "token":                                              # your bot token.
    "db":                                                 # the absolute or relative path to the sqlite db.
    "queueTable":                                         # name of the queue table.
    "usersTable":                                         # name of the users table.
    "dykTable":                                           # name of the dyk entries table.
    "serverId":                                           # discord server ID.
    "generalChannelId":                                   # ID of the channel where the bot sends automated "Did You Know" messages, usually the most visited channel.
    "aiChannelId":                                        # ID of the channel where the bot sends it's announcements.
    "ahelpChannelId":                                     # Same as above, but for in-game tickets for the admins. Should definately remain private to the staff only.
    "whitelist":                                          # List of server roles or user IDs that may use the debug commands (eg: " "whitelist" : [752381239521385291357, "Admins", "Fake Role"] ")
    "dykInterval":                                        # Time between DYK entry announcements, in seconds. (Default: 900, 15 minutes)
    "dykCooldown":                                        # Time needed before the same entry is again eligible for announcement. (Default: 7200, 2 hours)
}

About

Discord Bot in Python for the Persistent SS13 Official codebase and game server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages