Limiting gateway data to reduce traffic usage
So is it possible to do something to reduce bandwidth, my bot which currently uses presence intent has over 500gb monthly inbound usage, which is kinda concerning so early.
10 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes i do
well
they are necessary because else core features wouldnt work
i try to keep ram as low as possible too
status updates (monitoring users and bots, and updating messages according to those updates)
dont they keep bots own messages in cache?
so i can just fast access them without fetching api
wait really?
why is that not noted anywhere
but still, i'd need messageCreate event
• Websocket intents limit events and decrease memory usage: learn more
• See what intents you need here
maybe would look dumb but is nice feature
it should tell you that bot receives message over messageCreate, creates collector awaiting new messages, and if there isnt any, it resends message
and no i didnt say anything in video
which ofc indicates usage of intent
fair point yes
any other possible efficiency you could see?
wouldnt that stop receiving messages at all (second one)
wouldnt that interval take up some memory
even if it would be less, when it would trigger it to start
isnt that kinda meh system
when you put it in perspective
because over time i'd have possibly thousands of running intervals and checking messages (channels) when some are not necessary to even check for
because they'd be inactive, but i'd still run interval every x seconds
with what
i know, but like to check for messages, so i'd have to have sort of array of channel id's and then check each from cache and compare last message id/author?
but collectors delete themselves when not used/ran?
hopefully
currently
well true
what if i'd just want to have some owner only text commands
no way around messageCreate?
yes, slash command eval
with modal idk
it happened
i have all 3 intents by some magic
i just wrote essay about details of every feature