Closed lpkeates closed 4 years ago
Not sure because your cogs work for me
Can you use commands from the cog that's not working? It might not be loading correctly.
Not sure because your cogs work for me
Can you use commands from the cog that's not working? It might not be loading correctly.
Yes, I can use the commands. Its just they won't show for me :/
It works now, its just the ban/unban commands won't show up. Trial and error lol
@MrMudkip Commands won't show up if you don't have permission to run them, and if there are no commands in a category that you can run, the category just won't show up.
I can't seem to see every single cog my bot has in the help command.
I have 3 cogs, but its showing all except 1 all of a sudden.
Code for the missing cog:
``import discord from discord.ext import commands
class Moderation(commands.Cog):
def init(self, bot): self.bot = bot
def setup(bot): bot.add_cog(Moderation(bot))`
Code 2 (non-missing cog): `import discord from discord.ext import commands import discordlists
class Owner(commands.Cog): def init(self, bot): self.bot = bot self.api = discordlists.Client(self.bot) # Create a Client instance self.api.set_auth("discordbotlist.com", "CENSORED") self.api.set_auth("discord.boats", "CENSORED") self.api.set_auth("discordextremelist.xyz", "CENSORED") self.api.set_auth("bladebotlist.xyz", "CENSORED") self.api.set_auth("discord.bots.gg", "CENSORED") self.api.set_auth("botsfordiscord.com", "CENSORED") self.api.set_auth("disforge.com", "CENSORED") self.api.set_auth("discordbotlist.cleverapps.io", "CENSORED") self.api.start_loop() # Posts the server count automatically every 30 minutes
def setup(bot): bot.add_cog(Owner(bot))`
Code 3 (not a missing cog as well):
`import discord from discord.ext import commands from datetime import datetime import traceback import sys
class Misc(commands.Cog):
def init(self, bot): self.bot = bot
def setup(bot): bot.add_cog(Misc(bot))``