Closed ShadyGame closed 8 months ago
/listplayers is a command that is already planned, should be implemented soon.
Custom welcome or timed message is a good suggestion, will try to make it customizable.
Nice! thank you for your work on this bot.
There no log right? because for some reason the bot stops working sometimes, if the server restarts the bot resumes or do i have to restart it aswell?
Also it takes some time to start sending logs and updating status or its just mine?
There are Game logs and Whitelist Logs. You can configure them using /serverconfig There were few instances where the bot stops working randomly when the bot or the server restart, this has been fixed now.
About the logs, currently the bot updates status message every 10 seconds and checks for whitelist and new player join/leaves every 5 seconds(this is when the logs are sent to discord as well). I've set these to avoid too much strain on the server and to avoid being rate limited by discord.
its been working pretty well now good job
Would be nice in the players log to have the Steamid and player ID aswell, i need to ban someone thats not online, and im not able because i dont know any of those.
Yea those embeds could use some work. Will Improve it in the coming weeks.
Also, i banned a player on discord and nothing happened, also, when you try to ban it will display only the steam id, would it be possible to show ingame name aswell? i need to ban a offline player and i dont know his steamid
Also another suggestion for logs would be Ip adress, ive been dealing with more cheaters lately its a pain
I don't think its possible for the bot to get the player IP. If you are facing a lot of cheaters try using an Anti Cheat like Palguard.
im using whitelist now, and using pm2 to run the bot, but now i get errored, any way to see why? any log?
It seems i can only whitelist one person, after that i get the error "this interaction failed" on discord trying to add to whitelist
where is the whitelist data stored?
EDIT: after some tries i could add another person to whitelist, also i noticed it takes a few seconds to kick the person, hopefully isnt enough time for a cheater to do something. could be possible to kick faster?
@ShadyGame You can set debug to true in the config.json to show more logs. Whitelist data and every other data is stored in data.json.
The Whitelist check is done every 5 seconds. You can change the value here: https://github.com/Abhijith4124/Ahhh-Bot/blob/babb7069c59eb18c9e1798c1f8e0e1f0a6c37eb0/services/rconService.js#L478
I've set it to 5 seconds as it seems to be the sweet spot for getting the data from the server and to prevent players with HDD or slower storage from getting stuck in a loading loop because they are kicked even before the game loads.
Even if i turn off the script i still get the joined notifications, is that normal? because before i had translated the joined notification, and join after translating it still in english, hows that possible?
Where i can see the more logs you talked about? "customStatusMessage": "" is for whitelist message?
Still having trouble with the whitelist player button on discord, but with the command /addwhiltelist works
Since I enabled the whitelist now I get 3 joined or left messages for each player.
also thanks for your reply's and patience
Are you using the latest version? I think you have multiple instances of the bot running. How are you starting the bot?
That's what I thought , I even restarted the VPs, I use pm2 start index.js, there's only one running, I think when you use white list, you get 2 messages when joined, and they are different, one just says player joined, the other one it's the player joined the server, maybe one it's just the first time you joined dunno .
Did you try running pm2 ls
and checking how many instances are running?
Its fine now i dont know what happened, does this bot affect server FPS?
Its fine now i dont know what happened, does this bot affect server FPS?
No, it shouldn't affect the server FPS at all.
Hi,
So before i found this amazing bot i was using another one, the only thing i miss is the /online command, to list all the players currently on the server (ingame name , steamurl), would be possible to implement this?
edit: Nevermind. i see how server status works,
I got another suggestion, how about a welcome message? or set timed messages? so we could show the discord link or important messages from time to time?
thanks