Added logic to handle max message xp per hour #168

This commit is contained in:
Sven Heidemann 2023-01-11 20:13:09 +01:00
parent 0c76269e40
commit e481958bad
3 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
from abc import ABC, abstractmethod
from datetime import datetime
from typing import Callable
import discord
from cpl_query.extension import List
from discord.ext.commands import Context
from bot_data.model.user import User
from modules.base.configuration.base_server_settings import BaseServerSettings
from bot_data.model.user import User
class ClientUtilsABC(ABC):

View File

@ -1,7 +1,7 @@
from datetime import datetime
from typing import Callable
import discord
from bot_data.abc.user_joined_voice_channel_abc import UserJoinedVoiceChannelRepositoryABC
from cpl_core.configuration import ConfigurationABC
from cpl_core.database.context import DatabaseContextABC
from cpl_core.logging import LoggerABC

View File

@ -19,7 +19,7 @@ class UserMessageCountPerHourMigration(MigrationABC):
str(f"""
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
`Id` BIGINT NOT NULL AUTO_INCREMENT,
`Date` DATETIME(6) NOT NULL,
`Date` VARCHAR(255) NOT NULL,
`Hour` BIGINT,
`XPCount` BIGINT,
`UserId` BIGINT,