TheSpeaking Lava
@TheSpeakingLava
Nope Im aint gonna do it boi
I have a discordbot code but idk how I run it 24/7 without interacting... All the guides talks about discord.py pack or something but I just coded in
Vandesm14 You can use https://uptimerobot.com/. Just add an http monitor set to the repl url, 5 min interval, and that's it!
> Please mark this as answered if I helped your problem 👍4 years ago
I cant find the error in my code... It just says invalid syntax, but i cant find whats wrong.... https://im-boi2.thespeakinglava.repl.run
ArchieMaclean f strings only support variables - you are trying to use a function (random.choice(responses)) inside (on line 45). This doesn't work. An example fix is:
async def _8BALL(ctx, *, question):
responses = [
...
]
response = random.choice(responses)
await ctx.send(f'Question: {question}\nAnswer: {response}')
Also, make sure that the await is on the same indentation level as the rest of the function (like above).
Please mark this as the answer if it solved your problem :)4 years ago
I can't get the repl.it to wake up on my script pls help me! Here is the link: https://DISCORDBOT-10--thespeakinglava.repl.co
TheDrone7 It is because there's an error in your repl. According to which it says, you passed an improper token for the bot. Might wanna fix your code and try using the start button in the repl to start it. If it starts then you're good to go.4 years ago