Traceback (most recent call last):
File “main.py”, line 8, in
from discord_slash import SlashCommand
ModuleNotFoundError: No module named ‘discord_slash’
my discord bot: https://replit.com/@HOLDULV/Bota-Apex-mutitask#main.py
Traceback (most recent call last):
File “main.py”, line 8, in
from discord_slash import SlashCommand
ModuleNotFoundError: No module named ‘discord_slash’
my discord bot: https://replit.com/@HOLDULV/Bota-Apex-mutitask#main.py
Don’t use discord slash, use @discord.tree.command()
decorator.
oh ok then ill try to see if it fixed the error
wait where should i make the changes like where should i add @discord.tree.command()
Actually, just replace @client.command
with @client.hybrid_command
. And remove all discord slash imports.
oh ok thanks for replying
thanks for the help the bot is running with no errors.
i change the @client.hybrid_command back to @client.command as i could not see what difference it made
Hybrid commands makes have a slash command and a normal command. Commands just makes it a normal command. Note: Did you mean app command or a command with a slash prefix.
wdym at the end
…sorry
Or the normal commands, with a slash prefix, as your bot is configured for.
Well when i use @client.hybrid_command then my commands does not show up in the commands tab or what elles it called
afk got to bed…, im sleeping sorry but im afk
Ah, at the end of on_ready
add this:
await bot.tree.sync()
You need to sync it for it to appear.
oh ok thanks for you helping and kindness
how do i make my bot run forever like run 24/7
The is not really possible in replit, but you can simulate it by buying always on, or use a pinger for free, although it eats egress.
what do you mean? I don’t know what “egress” is.
it does not use a lot of egress
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.