mirror of
https://github.com/Xevion/contest-assistant.git
synced 2025-12-09 00:06:41 -06:00
setup basic logging constants/handlers, write all table creation/update/basic fetching behavior sqlite statements
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
import logging
|
||||
|
||||
import discord as discord
|
||||
|
||||
from contest import constants
|
||||
from contest.db import ContestDatabase
|
||||
|
||||
logger = logging.getLogger(__file__)
|
||||
logger.setLevel(constants.LOGGING_LEVEL)
|
||||
|
||||
|
||||
class ContestClient(discord.Client):
|
||||
def __init__(self, **options) -> None:
|
||||
super().__init__(**options)
|
||||
self.db = ContestDatabase.create()
|
||||
|
||||
async def on_message(self) -> None:
|
||||
async def on_message(self, message: discord.Message) -> None:
|
||||
prefix = message.guild
|
||||
pass
|
||||
|
||||
async def on_raw_reaction_add(self, payload) -> None:
|
||||
|
||||
Reference in New Issue
Block a user