mirror of
https://github.com/weyne85/discord_music_bot.git
synced 2025-10-29 16:58:27 +00:00
Adding new controllers
This commit is contained in:
13
Controllers/ClearController.py
Normal file
13
Controllers/ClearController.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from discord.ext.commands import Context
|
||||
from discord import Client
|
||||
from Controllers.AbstractController import AbstractController
|
||||
from Controllers.ControllerResponse import ControllerResponse
|
||||
|
||||
|
||||
class ClearController(AbstractController):
|
||||
def __init__(self, ctx: Context, bot: Client) -> None:
|
||||
super().__init__(ctx, bot)
|
||||
|
||||
async def run(self) -> ControllerResponse:
|
||||
self.player.playlist.clear()
|
||||
return ControllerResponse(self.ctx)
|
||||
Reference in New Issue
Block a user