Abhijith4124 / Ahhh-Bot

Ahhh Bot - Palworld Discord Bot | Whitelist | Join/Leave Messages | Automatic Roles and Announcement
15 stars 3 forks source link

Leave message loop. #1

Closed XSlimeX closed 7 months ago

XSlimeX commented 7 months ago

Hello! First of all, amazing job. For some reason when i add a new server , it says "Failed To Add Server PALADIN. Check the Hostname and Port, also make sure the server is running... " even though it adds it and runs normally. 2nd issue is that the leave messages on restart of the server loop, if the server restarts, the bot will spam leave messages till i restart the bot.

image this is the loop, the same people leaving over and over.

Abhijith4124 commented 7 months ago

Could you try the dev branch and let me know.

XSlimeX commented 7 months ago

Could you try the dev branch and let me know.

wym? by the way i made the

console.error(e); } }, 2000); } module.exports = {startRCONService}

to 10000 (10s). seems to make it a little bit better but still not a fix.

If you could explain how this works i maybe could find a solution for it. i believe the issue is in rconService.js though(for the loop problem at least).

my discord is: xmr.business if you wanna talk about it and help each other out. idk wym to create a dev branch about it xD

Abhijith4124 commented 7 months ago

I've made a dev branch and has been making changes and bug fixes on it, switch the branch from main to dev and test the bot.

https://github.com/Abhijith4124/Ahhh-Bot/tree/dev

XSlimeX commented 7 months ago

I've made a dev branch and has been making changes and bug fixes on it, switch the branch from main to dev and test the bot.

https://github.com/Abhijith4124/Ahhh-Bot/tree/dev

I did, still same issue. edit: have you tried cleaning the db? i see it keeps the names there, make it clean if it cant connect to the server.

Abhijith4124 commented 7 months ago

It does clean the DB, but it should only add the data if the connection was successful. Could you try removing the server or clearing the entire data.json in data/data.json and try again?

XSlimeX commented 7 months ago

It does clean the DB, but it should only add the data if the connection was successful. Could you try removing the server or clearing the entire data.json in data/data.json and try again?

clearing the whole data.json was a bad idea. I had to set up the server again. and yes i did both,didnt work.

does the clean script you added clean only the names or?

XSlimeX commented 7 months ago

It seems fixed now.