Added on_message to abc
This commit is contained in:
parent
12492cf596
commit
880fe8a4c7
@ -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
|
||||||
|
Reference in New Issue
Block a user