Team-Silver-Sphere / SquadJS

Squad Server Script Framework
Boost Software License 1.0
163 stars 123 forks source link

Feat: Add @here & Server Name #344

Closed IgnisAlienus closed 7 months ago

IgnisAlienus commented 7 months ago

Adds the ability to turn on @here for Admin Requests in Discord. This allows for pinging of all ONLINE Squad Admins if the Admin Request is going to a Squad Admin only Channel.

Added the ServerName option so you can tell what server the request is coming from for communities with multi servers without having to create multi channels for each server's admin request notifs.

IgnisAlienus commented 7 months ago

Updated to use a this.server.serverName instead of using a plugin option of this.options.serverName.

fantinodavide commented 7 months ago

The readme file hasn't been updated when removing the server name option, also, updating it shouldn't be a manual process as there is a command and a pre-commit hook to automatically update the config file, readme, and lint/format the files affected by the changes.

IgnisAlienus commented 7 months ago

The readme file hasn't been updated when removing the server name option, also, updating it shouldn't be a manual process as there is a command and a pre-commit hook to automatically update the config file, readme, and lint/format the files affected by the changes.

Updated ReadME.

Yeah, things are wonky in my fork/branch so it was easier for me to just modify the files directly in this PR.

werewolfboy13 commented 7 months ago

@IgnisAlienus I see you removed the server name, was that intended?

IgnisAlienus commented 7 months ago

@IgnisAlienus I see you removed the server name, was that intended?

Yes. this.server.serverName returns the Server Name that I is fetched somewhere else in SquadJS