I have a bot in a discord server that when they type a command called hello, the bot will respond from a random choice in a list.
I'm trying to get the bot to respond a different way if it is a very specific user id.
This is not working,
@bibi.command()
async def hello():
if message.author.id == ('279460450637185024'):
choicesa = ('get away', 'dont greet me', 'youre wasting my time', 'Hallo', 'oh god its you', '....' , 'dude go away' , 'WHAT DO YOU WANT' , 'HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII' , 'i dont talk to democrats')
await bibi.say(random.choice(choicesa))
elif message.author.id == ('80971950054187008'):
choicesl = ('lauren...', 'hi. lauren.')
await bibi.say(random.choice(choicesl))
It's saying message is not defined, and now I understand that, I thought it was defined in discords library but its not.
How can I do this?