Ask coding questions

← Back to all posts
I am getting a mystery error message
MariusSorensen

I have made a bot that (amung other things) should reply with one of the sentences from starter_encouragements when the word "sad" is typed but when i type "sad" in the discord server it says: AttributeError: module 'random' has no attribute 'choice' and i'm very confused

Voters
MariusSorensen
Comments
hotnewtop
IMayBeMe

Read the errror carefully, you spelled choice wrong and wrote coice. Changing the spelling should fix it.