mcserver-discordbot/bot/extensions/startstop.py
2022-04-02 21:03:31 +02:00

19 lines
395 B
Python

import discord
from discord.commands import slash_command
from libs import Client
class StartStop(discord.Cog):
"""< discord.Cog >
Extension for starting and stopping the Minecraft server.
"""
def __init__(self, bot: Client):
self.bot = bot
@slash_command(name='start')
async def __execute_start(self, ctx: discord.ApplicationContext) -> None:
pass