Added on_message handling

This commit is contained in:
2021-11-17 19:43:00 +01:00
parent 5b61de0bf1
commit 6509f628ca
6 changed files with 45 additions and 14 deletions

View File

@@ -1,13 +1,8 @@
from abc import ABC, abstractmethod
from cpl_query.extension import List
from modules_core.events_enum import EventsEnum
import discord
class ModuleABC(ABC):
@abstractmethod
def __init__(self): pass
# @property
# @abstractmethod
# def events(self) -> List[EventsEnum]: pass

View File

@@ -0,0 +1,11 @@
from abc import ABC, abstractmethod
import discord
class OnMessageABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_message(self, message: discord.Message): pass

View File

@@ -0,0 +1,10 @@
from abc import ABC, abstractmethod
class OnReadyABC(ABC):
@abstractmethod
def __init__(self): pass
@abstractmethod
async def on_ready(self): pass