added logging
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import disnake
|
||||
from disnake import Option
|
||||
from disnake.ext import commands
|
||||
|
||||
from lib import logger
|
||||
|
||||
|
||||
@@ -11,6 +12,12 @@ class Testing(commands.Cog, name='Testing'):
|
||||
async def on_ready(self):
|
||||
logger.info(f'Cog {__name__.split(".")[1]} is ready!.')
|
||||
|
||||
@commands.slash_command(name='play', description='play audio test from yandex.music', options=[
|
||||
Option(name='search', description='seach track/artist')
|
||||
])
|
||||
async def play(self, inter: disnake.ApplicationCommandInteraction, audio):
|
||||
pass
|
||||
|
||||
|
||||
def setup(bot): # an extension must have a setup function
|
||||
bot.add_cog(Testing(bot)) # adding a cog
|
||||
|
||||
Reference in New Issue
Block a user