Refactor Discord member statistics handling and remove unused components

- Removed the `guild_member_stats` table and related logic from the database and models, as well as the associated webapp routes and templates.
- Cleaned up the Discord bot initialization by eliminating unused imports and functions related to member statistics.
- Updated logging configuration in `run-web.py` to streamline the startup process and improve thread management.
This commit is contained in:
2026-03-25 23:13:14 +01:00
parent b51430e2b2
commit ec296dd226
12 changed files with 10 additions and 662 deletions
-9
View File
@@ -99,15 +99,6 @@ CREATE TABLE IF NOT EXISTS `member_invites` (
`join_date` DATETIME NOT NULL
);
CREATE TABLE IF NOT EXISTS `guild_member_stats` (
`guild_id` VARCHAR(64) NOT NULL,
`user_id` VARCHAR(64) NOT NULL,
`message_count` INTEGER NOT NULL DEFAULT 0,
`voice_seconds` INTEGER NOT NULL DEFAULT 0,
`updated_at` DATETIME,
PRIMARY KEY (`guild_id`, `user_id`)
);
CREATE TABLE IF NOT EXISTS `twitch_link_filter` (
id INTEGER PRIMARY KEY AUTOINCREMENT,
`enabled` BOOLEAN NOT NULL DEFAULT FALSE,