mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Revert cleanup db commit
This commit is contained in:
@ -3,7 +3,6 @@ from titanembeds.database import DatabaseInterface
|
||||
from titanembeds.commands import Commands
|
||||
from titanembeds.socketio import SocketIOInterface
|
||||
from titanembeds.poststats import DiscordBotsOrg, BotsDiscordPw
|
||||
from titanembeds.cleanup_db import CleanupDatabase
|
||||
from collections import deque
|
||||
import discord
|
||||
import aiohttp
|
||||
@ -24,7 +23,6 @@ class Titan(discord.AutoShardedClient):
|
||||
self.database = DatabaseInterface(self)
|
||||
self.command = Commands(self, self.database)
|
||||
self.socketio = SocketIOInterface(self, config["redis-uri"])
|
||||
self.cleanup_db = CleanupDatabase(self, self.database)
|
||||
|
||||
self.delete_list = deque(maxlen=100) # List of msg ids to prevent duplicate delete
|
||||
|
||||
@ -80,7 +78,6 @@ class Titan(discord.AutoShardedClient):
|
||||
self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None))
|
||||
self.botsDiscordPw = BotsDiscordPw(self.user.id, config.get("bots-discord-pw-token", None))
|
||||
await self.postStats()
|
||||
await self.cleanup_db.start_cleanup()
|
||||
|
||||
async def on_message(self, message):
|
||||
await self.socketio.on_message(message)
|
||||
|
Reference in New Issue
Block a user