LaxSlash / Halo-CE-Discord-Reporter

A utility for users to report users in SAPP-enabled Halo CE gameservers via a webhook.
GNU General Public License v3.0
0 stars 0 forks source link

Add notification mode #4

Open LaxSlash opened 8 years ago

LaxSlash commented 8 years ago

Create a notification mode for the reporter utility in order to send notifications of things like bans, kicks, aimbot scores, etc.

(Requested by Devieth)

LaxSlash commented 8 years ago

Add special coloring for notifications vs. reports?

Devieth commented 8 years ago

Or have the color code be added as part of the script. color=#ffffff

LaxSlash commented 8 years ago

It might be better to leave it in the PHP App. If someone's fooling around trying to get a color that they like, it's a lot easier/quicker to update the PHP Config than it is to reload SAPP each and every time.

I'm thinking what we could also theoretically do is have notices be the server color at a less opaque level to make them distinguishable by both server and notification type.

Also, Discord expects the color in decimal format.

E: Actually, I have another idea that we can try out for this. See commit 9b76b67.

LaxSlash commented 8 years ago

Lua script now needs to have "?mode=[notify/report]&name=[server_name_here]" in the URL.

LaxSlash commented 8 years ago

Stalling on this until event_cmd is updated in SAPP.