laggycomputer / suprkewl-bot

Some robot. This is not a very serious project, but that's not an excuse for a sucky commit history.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SuprKewl Bot


An open-sourced Discord bot, written with discord.py==1.7.3.

If you want to host this bot:

  • Ensure your bot application has both intents enabled.
  • Copy suprkewl-bot/config.py.example to suprkewl-bot/config.py. Fill out the config parameters.
  • You need to set up both a Redis and a Lavalink instance and fill out the credentials in config.
  • You need the tables tf2idb_item and tf2idb_item_attributes from here (migrate them in using pgloader)
  • You also need Postgres (if you don't already have it); install it and type the following lines into psql:
    • CREATE ROLE skbot WITH LOGIN PASSWORD '123';
    • CREATE DATABASE skbot OWNER skbot;
    • CREATE EXTENSION pg_trgm;
  • Finally, you can use pip3 install -r requirements.txt at the root of this repo to install the requirements.

Please ensure that you run the bot with the repo root as your current directory. (If you forget about this and run the bot, you can use sk!jsk py import os; os.chdir("<repo root dir here>").)

Oh and hey, if you wanna PR this bot, I'm not merging/rebasing until the build passes. Thanks anyway.

About

Some robot. This is not a very serious project, but that's not an excuse for a sucky commit history.

License:GNU Affero General Public License v3.0


Languages

Language:Python 99.4%Language:TeX 0.6%