chatcord
chatcord copied to clipboard
Submit Button
Chat Room is visible, able to join, but when sending a message nothing occurs. Any assistance is appreciated.
Same here
Please check this function is like this: I made like this and worked
Python import discord import asyncio
client = discord.Client()
@client.event async def on_ready(): print('Bot is ready.')
@client.event async def on_message(message): if message.author == client.user: return
if message.content.startswith('!hello'):
await message.channel.send('Hello!')
client.run('YOUR_TOKEN_HERE')
The code seems to be working fine. When you send the message !hello in the chat room, the bot should respond with Hello!. However, if you are not seeing the bot respond, it is possible that there is a problem with your Discord token. You can check your Discord token by going to your Discord settings and clicking on the "Bot" tab. Your token will be displayed in the "Token" field.