Added cpl-discord project
This commit is contained in:
0
src/cpl_discord/service/__init__.py
Normal file
0
src/cpl_discord/service/__init__.py
Normal file
16
src/cpl_discord/service/bot_service_abc.py
Normal file
16
src/cpl_discord/service/bot_service_abc.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
class BotServiceABC(ABC, commands.Bot):
|
||||
|
||||
def __init__(self):
|
||||
ABC.__init__(self)
|
||||
|
||||
@abstractmethod
|
||||
async def start_async(self): pass
|
||||
|
||||
@abstractmethod
|
||||
async def stop_async(self): pass
|
||||
Reference in New Issue
Block a user