#Make my bot can see other bot's messages

1 messages · Page 1 of 1 (latest)

still pike
#

I want to view an other bot's messages with my bot but I saw that by default with the event 'messageCreate' it filter the bot's messages

#

Does anyone have a solution ?

atomic flume
#

messageCreate doesnt filter out bot messages

#

show how you implemented it

still pike
#
client.on('messageCreate', msg => {
  //do something
});
#

And it don't reach the //do something

atomic flume
#

do you have the GUILD_MESSAGES intent

still pike
#

yes

#

I can see my own messages

atomic flume
#

can you show the full code?

still pike
#

yes

atomic flume
#

if you look into msg_listener, you're ignoring bots with if (msg.author.bot) return

still pike
#

Oh I haven't view this

#

Thank you

#

I use GitHub Copilot and sometimes it do things like this

atomic flume
#

you shouldnt rely on it

still pike
#

yes I didn't but sometimes I don't view that it did something

#

It works now