Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
I want to write a bot for my discord channel to send users "hi" message, who writes hello
@bot.event
async def on_message(message):
    channel = bot.get_channel(931570478915657790)
    if message.content == "hello":
        await channel.send("hi!")

I'm new at programming. I want to write a bot for my discord channel to send users "hi" message, who writes hello. But there is a problem, only I(Which is self bot) can receive "hi!" message. When I write "hello" from another account, Bot not answers it. (Note: I am using selfbot, not a normal bot.)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

discord.py does not support selfbots very well, instead run these commands:

pip uninstall discord.py
pip install discord.py-self

discord.py-self is a copy of discord.py which gives more functionality to selfbots. However, selfbots are technically against the discord terms of service, so use at your own risk. Your code should work the exact same.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!