if message.content.upper().startswith("!HEADPATS"):time.sleep(1)with open('tenor.gif', 'rb') as picture:await client.send_file(channel, picture)
I've got my discord bot up and running (everything's written in python). I'm trying to get the bot to send a .gif in the channel upon the command "!headpats". The file is uploaded and the code compiles fine, but when the !headpats command is called via discord, the compiler spits this out...
File "main.py", line 106, in on_messageawait client.send_file(channel, picture)
NameError: name 'channel' is not defined