From cc156c2f1b880a250b8011dd97c7812c379b2e7c Mon Sep 17 00:00:00 2001 From: Momo Date: Sat, 21 Jul 2018 20:59:49 +0000 Subject: Infraction system API to replace Rowboat --- pysite/tables.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pysite/tables.py') diff --git a/pysite/tables.py b/pysite/tables.py index 8f849664..3485065f 100644 --- a/pysite/tables.py +++ b/pysite/tables.py @@ -259,6 +259,21 @@ TABLES = { ]) ), + "bot_infractions": Table( + primary_key="id", + keys=sorted([ + "id", # str + "user_id", # str + "actor_id", # str + "reason", # str + "type" # str + "inserted_at", # datetime + "expires_at", # datetime + "active", # bool + "legacy_rowboat_id" # str + ]) + ), + "watched_users": Table( # Users being monitored by the bot's BigBrother cog primary_key="user_id", keys=sorted([ -- cgit v1.2.3