Added on_message to abc

This commit is contained in:
Sven Heidemann 2021-11-16 21:03:14 +01:00
parent 12492cf596
commit 880fe8a4c7

View File

@ -1,5 +1,6 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import discord
from discord.ext import commands from discord.ext import commands
@ -13,3 +14,6 @@ class BotServiceABC(ABC, commands.Bot):
@abstractmethod @abstractmethod
async def stop_async(self): pass async def stop_async(self): pass
@abstractmethod
async def on_message(self, message: discord.Message): pass