#Bot executed all command when started up
1 messages · Page 1 of 1 (latest)
Just ignore it based on timestamp of message chat or skip them several time after login
how?
beecause sometimes if the bot is in a group that is very active
and the bot stay offline for a long time
when it turned on, it will spam all the commands
Instead of using client.on 'message_create' try on event 'message'
but this will not listen to your own messages, message_create listens to your messages.
yeah im using it
what he said was right
compare timestamps
compare the message's timestamp to Date.now()
if the message was sent before now, ignore it
but
My brain is dying
if (message.timestamp + (RANGE IN MS HERE) < Date.now()) return;
literally
so for example
if (message.timestamp + (60000) < Date.now()) return;
if the message is within the last 60 seconds, process it
and @haughty bloom
Hello does anybody knows how to get message content/body form message_reaction events?
That's it. Simple as that.
should include the message id or message
but you can;t get message from message id am i right?
Any examples?
because my brain is overloaded
purpshell
.
do you find how?