Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit Button #44

Open
DmitriyMalayev opened this issue Feb 13, 2022 · 3 comments
Open

Submit Button #44

DmitriyMalayev opened this issue Feb 13, 2022 · 3 comments

Comments

@DmitriyMalayev
Copy link

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

@juanpormon
Copy link

Same here

@juanpormon
Copy link

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

@Vipul0052
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants