Skip to content

million1156/pinger

Repository files navigation

Pinger

This is a quick bot I wrote up in like an hour that pings either @here or a configurable "active ping" - it's for a server I work for (keep in mind, a lot of things are hardcoded in, sorry! i tried to make it as configurable as possible but being lazy has its side effects :P. also, it's probably somewhat broken after removing certain credentials and stuff.. idk its prob easy to fix)

Why use role checks instead of Discord permissions?

In our enviornment, having Discord permissions is considered dangerous for 2 reasons:

  • When Discord bans a server, most of the time, they'll also ban "staff" - this includes ANYONE with permissions Discord considers "staff-related". Since our server is prone to being falsely banned, we try to rely on not using Discord permissions as much as possible to avoid our staff from being banned on their main accounts.
  • It's generally safe to not use Discord permissions, as they cannot be as easily monitored from a bot. You should also use something like Wick (just in general, it's a good asf anti-nuke/antiraid bot).

What's with the weird code?

Okay look... my code isn't the best. But hey, it works! I used Prettier (in an attempt) to make it look better, but clearly that didn't work D:

If you want to improve the code, by all means go ahead! You can also do whatever you please, excluding selling it (please don't, this code is too awful to have someone pay for).

Have fun & enjoy :)

About

A configurable "pinger"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published