Coder Social home page Coder Social logo

Suggestion about ahhh-bot HOT 16 CLOSED

abhijith4124 avatar abhijith4124 commented on September 17, 2024
Suggestion

from ahhh-bot.

Comments (16)

ShadyGame avatar ShadyGame commented on September 17, 2024 1

its been working pretty well now good job

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024 1

Yea those embeds could use some work. Will Improve it in the coming weeks.

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024 1

@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:

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.

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

/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.

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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?

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

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.

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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.

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

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.

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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?

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

Are you using the latest version? I think you have multiple instances of the bot running. How are you starting the bot?

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

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 .

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

Did you try running pm2 ls and checking how many instances are running?

from ahhh-bot.

ShadyGame avatar ShadyGame commented on September 17, 2024

Its fine now i dont know what happened, does this bot affect server FPS?

from ahhh-bot.

Abhijith4124 avatar Abhijith4124 commented on September 17, 2024

Its fine now i dont know what happened, does this bot affect server FPS?

No, it shouldn't affect the server FPS at all.

from ahhh-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.