EinsteinBot icon indicating copy to clipboard operation
EinsteinBot copied to clipboard

Slash Command not appearing

Open Insidiouso opened this issue 2 years ago • 2 comments

I managed to get the bot to join the server and be online but now my issues is that the slash command do not appear

Insidiouso avatar Apr 02 '23 04:04 Insidiouso

I also edited the original code since it did not work for me here it is:

import discord from discord.ext import commands import json import os

with open("config.json", "r") as f: config = json.load(f)

intents = discord.Intents.all() client = discord.Client(intents=intents)

bot = commands.Bot(command_prefix = config["prefix"],intents=intents ) bot.remove_command("help")

for file in os.listdir("./cogs"): if file.endswith(".py"): name = file[:-3] bot.load_extension(f"cogs.{name}")

@bot.event async def on_ready(): print(f"Bot is online") await bot.change_presence(activity=discord.Game(name="big brain | =help"))

try: bot.run(config["token"]) except Exception as err: print(f"Error: {err}")

Insidiouso avatar Apr 02 '23 04:04 Insidiouso

Hey did u find the answer to this ?

Im having the same issue

lewynd avatar May 09 '23 14:05 lewynd