Skip to content
Sign upLog in
← Back to Community

How to Make Bot Reply

Profile icon
PARTHAGARWAL3

I want to make my bot reply ping the user when the user send message like When I send h!hi so it Reply Me by pinging like

@xxx
Hi. Like this can u tell me pls

Voters
Profile icon
UNITEDOFH
Profile icon
PARTHAGARWAL3
Comments
hotnewtop
Profile icon
dfnk

Javascript or Python

Profile icon
PARTHAGARWAL3
Profile icon
SixBeeps

Discord.py or Discord.js?

Profile icon
PARTHAGARWAL3
Profile icon
SixBeeps

@PARTHAGARWAL3
The Message object has a function called reply() that will do what you're looking for.

Profile icon
PARTHAGARWAL3

@SixBeeps
can u explain like a screenshot
Of both

Profile icon
SixBeeps

@PARTHAGARWAL3
Both? I only sent you one thing?

Also, the documentation I linked has some code examples already. Do you still need more examples?