chatcord icon indicating copy to clipboard operation
chatcord copied to clipboard

Submit Button

Open DmitriyMalayev opened this issue 3 years ago • 3 comments

Chat Room is visible, able to join, but when sending a message nothing occurs. Any assistance is appreciated.

DmitriyMalayev avatar Feb 13 '22 06:02 DmitriyMalayev

Same here

juanpormon avatar May 03 '22 21:05 juanpormon

Please check this function is like this: I made like this and worked image

juanpormon avatar May 06 '22 22:05 juanpormon

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.

Vipul0052 avatar Jul 14 '23 18:07 Vipul0052