I need help getting my bot to work
# Import Discord Package
import discord
# Client (our bot)
client = discord.Client()
@client.event
async def on_ready():
# DO STUFF....
general_channel = client.get_channel()
await general_channel.send('yo')
# Run the client on the server
client.run('')
when I run it i get AttributeError: 'NoneType' object has no attribute 'send' in terminal and nothing shows up on discord if you could fix it that would be great
question from:
https://stackoverflow.com/questions/65839365/attributeerror-nonetype-object-has-no-attribute-send-discord-bot 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…