Skip to content
Sign upLog in
← Back to Community
Bot that only talks in discord bot owner
Profile icon
XaveeIsAPixel

Anyone knows how to make a discord bot talk only to the bot creator?

can you do it on python or node.js?

Voters
Profile icon
VeraSmiles
Profile icon
XaveeIsAPixel
Comments
hotnewtop
Profile icon
CodeLongAndPros

Just check the ID of the command sender...

Profile icon
SixBeeps

You mean through DMs or through some server channel?

Profile icon
XaveeIsAPixel

@SixBeeps
a discord bot that only talks on the valid id

Profile icon
SixBeeps

@XaveeIsAPixel
Discord has many IDs. Do you mean like a channel ID?

Profile icon
XaveeIsAPixel

@SixBeeps
not a channel id, my id

Profile icon
SixBeeps

@XaveeIsAPixel
So, through DMs?

Profile icon
XaveeIsAPixel

@SixBeeps
no tru channel but only talk on valid discord id

Profile icon
SixBeeps

@XaveeIsAPixel
So they can only talk to one user?

Profile icon
XaveeIsAPixel
Profile icon
SixBeeps

@XaveeIsAPixel
Yeah so basically what
@CodeLongAndPros
said, just check for the user ID whenever the bot executes the command.

Profile icon
XaveeIsAPixel

@SixBeeps
i need the code.

Profile icon
SixBeeps

@XaveeIsAPixel
Well it depends on what framework you're using, and you specified two different languages so that doesn't help.