#command not found
1 messages · Page 1 of 1 (latest)
Likely not loading your cogs correctly.
I have slash commands and they are working fine inside the cog
Are you using Bot or InteractionBot?
Bot
Show where you're loading cogs
class Bot(commands.Bot):
def __init__(self):
intents = Intents.default()
intents.message_content = True
intents.guilds = True
intents.members = True
intents.reactions = True
intents.invites = True
super().__init__(command_prefix='pepe', help_command=None, intents=intents)
self.load_exts()
async def on_ready(self):
print('Ready')
def load_exts(self):
exts = os.listdir('exts')
for ext in exts:
try:
if ext != 'Disabled':
print('Loading extension' + ' ' + ext + '...')
self.load_extension('exts' + '.' + ext + '.' + 'commands')
except Exception as e:
print(str(e))
continue
load_dotenv()
token = os.environ.get('DISCORD_TOKEN')
bot = Bot()
bot.run(token)
And it's printing that your cog is being loaded?