i have enabled the command “shutdown” for user jeffalo which will practically make the bot stop responding to ANY command until i re-enable it manually
im not entirely sure how it is now, but basically:
bot should not poll. use socket.io to listen for message count increases, and then load messages to see if theres something to respond to. yes this is more requests to handle a single action, but this avoids having to poll the server.
bot should only be triggerable by @ mentions. eg. “@mrseeks tell me a joke” or something. this also helps you avoid the whole linking/unlinking system since the bot would be immediately globally available
but please keep it to only responding to comments for now!
there might be other stuff from the full rules list that i am forgetting, but those two are the most important.
So the polling thing i did in a rush, it's going to be removed and replaced with a socket.io message listener in a day or so (if that's okay — if not, shut down the bot by running “!shutdown” on @lankybox01/wall)
And the bot will never ever send any actual posts or comments, it will only reply to comments on walls.
And i am going to change the prefix to @mrseeks
thank you
sounds good! i think the socket.io part could be a bit confusing/difficult at first, but it will definitely also result in the bot being much faster than polling.
probably mis-click when banning you.
btw heres some code to connect to socket.io
// io would be from socket.io-client
const socket = io("https://api.wasteof.money", {
auth: {
token: "abcdefg this is my token abcdefg",
},
});
socket.on('updateMessageCount', (newCount)=>{
// check if the count is higher
// get the most recent unread messages
// for all the most recent messages, act upon comment_mentions/wall_comment_mentions
// you might even want to mark messages as read once they've been acted upon. thats up to you though
})
done! also it would be nice if you named it something different. i dont want the mee6 people coming after me/you because of the name.
like normally, i upload an image to cubeupload, go to link, copy it, and paste it into the box. I press post, and it does nothing. I jitter-tap it, nothing. I check to see if it posted, nope.
how to simulate admin on wo3 / is there a reactive var for client side admin.
Basically an equivalent to wo2’s $nuxt.$auth.user.permissions.admin = true
oh rip, maybe a dev mode would make more sense. Like show ids for stuff, and console log the socket and useful data about the page. ( speaking of console, the console currently logs socket events, is that gonna be removed later, or did you forget to remove the console.log )
Make so 404 pages have link to homepage or simply shows the navbar? (https://beta.wasteof.money/users/kaj6 a 404 link)
You banned 5 Kaj lol
bug wasteof2: if i love a post and its pinned the pin love count wont update and will glitch when i try loving the pin