Question:
I am making a discord bot for fun and it keeps giving me the same error. Repl link: main.py - Test Bot - Replit
import discord as dis
import os as OS
client = dis.Client()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_messaeg(msg):
if msg.author == client.user:
return
if msg.content.startwith('//hello'):
await msg.channel.send('Hello, how are you?')
client.run(my_secret)
You also need the message_content intent, but I would recommend a slash command bot for performance, ease and so your bot doesn’t break when it goes in enough servers to need, and be declined, verification for message_content intent.