Hi I want to make a dc bot on replit like this my code is:
import discord
import os
client = discord.Client(intents=discord.Intents.default())
@client.event
async def on_ready():
print("This is user {0.user}".format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith("$hello"):
await message.channel.send("Hello!")
my_secret = os.environ['TOKEN']
client.run(my_secret)
My bot is not responding to my command but it is online I checked the permissions
source https://stackoverflow.com/questions/75837767/dc-bot-on-replit-doeas-not-responding-but-online-on-server
Comments
Post a Comment