Fixed read prefix
First iteration work with cog from slash command
This commit is contained in:
@@ -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):
|
||||
Reference in New Issue
Block a user