Fixed read prefix

First iteration work with cog from slash command
This commit is contained in:
2022-07-01 00:23:20 +03:00
parent 6ca1e372fc
commit 3456faed4e
2 changed files with 49 additions and 48 deletions

View File

@@ -1,3 +1,5 @@
import logging
from discord.ext import commands
@@ -7,7 +9,7 @@ class Test_Cog(commands.Cog):
@commands.Cog.listener() # this is a decorator for events/listeners
async def on_ready(self):
print('Bot is ready!.')
logging.info(f'Cog {__name__.split(".")[1]} is ready!.')
@commands.command() # this is for making a command
async def ping(self, ctx):