Question:
Repl link:
https://replit.com/@rataboy/Musicfy#main.py
code snippet
so i can do the bot?
If you read the post you would know that the bot should work as intended, it’s not your fault, merely a combination of replit and discord ratelimit
Well I don’t know the first thing about making bots but I think you’re missing a comma.
Your code:
# Initialize the bot
bot = commands.Bot(intents=discord.Intents.all(), (commands_prefix '!')
Whereas it should be:
# Initialize the bot
bot = commands.Bot(intents=discord.Intents.all(), (commands_prefix, '!')
Now Idk how to fix the SyntaxError
here sorry:
@bot.command()
async def play(ctx, *, url: str): # SyntaxError here
I don’t think it’s that as they’re getting a SyntaxError
in the 6th
line, you had a syntax error.
change commands.Bot(intents=discord.Intents.all() , (commands_prefix '!')
to commands.Bot(intents=discord.Intents.all() , command_prefix='!')
.
EDIT: It is also appearing that you are trying to make a YouTube-Player Discord-Bot.
YouTube had recently hit some discord bots developers with a lawsuit because their bots are allowing members to listen to youtube music/videos without paying to the content creator, So i wouldn’t do that. And @not-ethan was right about the discord ratelimits, Replit has a shared ip so there are thousands of people who run their discord bot on replit and discord often ratelimit blocks them.