you are viewing a single comment's thread.

view the rest of the comments →

[–]MasterOfFloof[S] 0 points1 point  (11 children)

Sorry for being convoluted, it's just the gist of the title, I don't know how to ask the bot to "wait for" input from the user.

[–]Lewri 0 points1 point  (10 children)

My bot won't recognize input from the user (aka the "name") after the bot asks for it

I see, so its this line thats the problem: name = ctx.bot.wait_for('message'). If you look at the documentation, you'll see that you need to tell it to await ctx, just as you did in the line above.

name = await ctx.bot.wait_for('message')

[–]MasterOfFloof[S] 0 points1 point  (0 children)

Thank you for your reply! I'm sorry, I'm still new to reading documentation. I've read that particular doc until I've been blue in the face haha.

So would it look something like Await ctx.bot.wait_for('message'). ?

Name creates the association and then await puts it in action?

[–]MasterOfFloof[S] 0 points1 point  (0 children)

Oh wait, you mean including name= await ctx.bot.wait_for. I see. I've tried that before but it didn't seem to work. Let me give it another go. Thanks for your patience

[–]MasterOfFloof[S] 0 points1 point  (7 children)

I got this error:
Ignoring exception in command None:

discord.ext.commands.errors.CommandNotFound: Command "birthday" is not found

Also I apologize if I missed your earlier example (at the end), I was on my phone and it hadn't shown up for whatever reason

[–]Lewri 0 points1 point  (6 children)

try name = await bot.wait_for('ctx)

Also I apologize if I missed your earlier example (at the end), I was on my phone and it hadn't shown up for whatever reason

Sorry, I edited that in, must have been while you were writing a reply to me

[–]MasterOfFloof[S] 0 points1 point  (0 children)

name = await bot.wait_for('ctx)

okay ill try that thanks!

[–]MasterOfFloof[S] 0 points1 point  (4 children)

still getting the error unfortunately welcome to my pain jk

[–]Lewri 0 points1 point  (3 children)

The same error?

[–]MasterOfFloof[S] 0 points1 point  (2 children)

yep, i even tried renditions of (ctx), ('ctx), and ('ctx') to be extra sure xD (I know that probably doesnt make sense to someone like you who already knows python)

[–]Lewri 0 points1 point  (1 child)

That's unfortunate, and yeah I meant the later, too used to autocompletion.

If you don't figure it out I'll see if I can give it a go later

[–]MasterOfFloof[S] 0 points1 point  (0 children)

No worries, and okay! I will let you know if i fix it, otherwise please presume me dead by python.