Added logic to handle max message xp per hour #168
This commit is contained in:
parent
0c76269e40
commit
e481958bad
@ -1,13 +1,13 @@
|
|||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
from datetime import datetime
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
|
import discord
|
||||||
from cpl_query.extension import List
|
from cpl_query.extension import List
|
||||||
from discord.ext.commands import Context
|
from discord.ext.commands import Context
|
||||||
|
|
||||||
from bot_data.model.user import User
|
from bot_data.model.user import User
|
||||||
from modules.base.configuration.base_server_settings import BaseServerSettings
|
from modules.base.configuration.base_server_settings import BaseServerSettings
|
||||||
from bot_data.model.user import User
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ClientUtilsABC(ABC):
|
class ClientUtilsABC(ABC):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
from datetime import datetime
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
from bot_data.abc.user_joined_voice_channel_abc import UserJoinedVoiceChannelRepositoryABC
|
|
||||||
from cpl_core.configuration import ConfigurationABC
|
from cpl_core.configuration import ConfigurationABC
|
||||||
from cpl_core.database.context import DatabaseContextABC
|
from cpl_core.database.context import DatabaseContextABC
|
||||||
from cpl_core.logging import LoggerABC
|
from cpl_core.logging import LoggerABC
|
||||||
|
@ -19,7 +19,7 @@ class UserMessageCountPerHourMigration(MigrationABC):
|
|||||||
str(f"""
|
str(f"""
|
||||||
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
|
CREATE TABLE IF NOT EXISTS `UserMessageCountPerHour` (
|
||||||
`Id` BIGINT NOT NULL AUTO_INCREMENT,
|
`Id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||||
`Date` DATETIME(6) NOT NULL,
|
`Date` VARCHAR(255) NOT NULL,
|
||||||
`Hour` BIGINT,
|
`Hour` BIGINT,
|
||||||
`XPCount` BIGINT,
|
`XPCount` BIGINT,
|
||||||
`UserId` BIGINT,
|
`UserId` BIGINT,
|
||||||
|
Loading…
Reference in New Issue
Block a user