MarcTowler / discord-bot

BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Maintenance / Online message #49

Closed Redous-UK closed 5 years ago

Redous-UK commented 5 years ago

when servicing bot makes an announcement in web-team channel. My Master has finished updating my internal core, I am now available My Master has retired my services to update my internal core, please be patient

MarcTowler commented 5 years ago

Passing this one over to you @Redous-UK

Redous-UK commented 5 years ago

Why me lol, It was my idea :D okay nvm I will see what i can do.

MarcTowler commented 5 years ago

haha makes it even more worth passing to you

Redous-UK commented 5 years ago

okay looking into this it is possible when doing so via command line only as the .on('disconnect' blah blah code will constantly report these messages due to how discord is designed. Discord refer gateway packets as heartbeats which are sent to keep the connection open. Each heartbeat will typically disconnect and reconnect throwing our comments even though the bot does not go offline or online each time commands are held up in a queue which is inevitably parsed when the heartbeat is reconnected. So we can have this via command but would be annoying as hell bit like Guilded online/offline situation right now.