strinking / statbot

A data ingestion bot that reads records from Discord guilds into a SQL database.
MIT License
22 stars 5 forks source link

Upgrade to discord.py v2.0 and add thread support #71

Closed alostsock closed 1 year ago

alostsock commented 2 years ago

This is a PR that includes a bunch of changes to get thread events working.

I've added Alembic for performing database migrations:

Some minor issues that aren't covered in this PR (they can probably be solved in future PRs):

Unfortunately, none of the servers I moderate have a ton of thread activity, so I have only done some brief testing. I used python 3.9.9 (discord.py now requires a version greater than 3.7) and postgres 9.6. Migrations were tested by upgrading schemas created from the master branch with discord.py v1.5. I did not run pylint -- the pylintrc is a smidge out of date, I think.