From 880fe8a4c77d7478d71fb4a84b5f999ed13c6d05 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 16 Nov 2021 21:03:14 +0100 Subject: [PATCH] Added on_message to abc --- src/gismo_core/abc/bot_service_abc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gismo_core/abc/bot_service_abc.py b/src/gismo_core/abc/bot_service_abc.py index 5ce856e..c842923 100644 --- a/src/gismo_core/abc/bot_service_abc.py +++ b/src/gismo_core/abc/bot_service_abc.py @@ -1,5 +1,6 @@ from abc import ABC, abstractmethod +import discord from discord.ext import commands @@ -13,3 +14,6 @@ class BotServiceABC(ABC, commands.Bot): @abstractmethod async def stop_async(self): pass + + @abstractmethod + async def on_message(self, message: discord.Message): pass