AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [ANY] Discord Notification (Join, Ban, Disconnect, Map, Kills, Chat) (https://forums.alliedmods.net/showthread.php?t=326190)

Benito 07-21-2020 15:34

[ANY] Discord Notification (Join, Ban, Disconnect, Map, Kills, Chat)
 
About
Send notification on a discord channel when a player join, disconnect, get banned and when the map start.
Discord A.P.I from Deathknife

Features
  • Player Connection Logging
  • Player Disconnect Logging
  • Player Ban Logging
  • SourceBans Bans support (separated, required SourceBans)
  • SourceBans Report support (separated, required SourceBans)
  • When a Ban its removed
  • Players Chatting Logging(Enable or Disable by Cvar(discord_messages))
  • Map Change Logging
  • Auth informations Logging(Enable or Disable by Cvar(discord_auth))
  • Who killed who loggin(Enable or Disable by Cvar(discord_killedby))
  • Mute or Unmute Logging
  • Gag or Ungag Loggin
  • Embed or Normal notification added
  • Translations in 5 languages(English, French, Romanian, Korean, Polish, Turkish)

Example of notifications
Normal
https://image.noelshack.com/fichiers...33-capture.png
Embed
https://image.noelshack.com/fichiers...61-capture.png

Requires:
SteamWorks

Installation
Add your WebHook URL to discord_notification.cfg(File created after first launch of the plugin).
WebHook URL can be created in your channel settings on discord.

discord_api.smx -> addons/sourcemod/plugins/
discord_notification.smx -> addons/sourcemod/plugins/
discord_sourcebans.smx -> addons/sourcemod/plugins/
discord_notification.phrases -> addons/sourcemod/translations/

Download:
https://github.com/Benito1020/discor...ive/master.zip

discord_notification.cfg
Quote:

// Default webhook for sending logs, see discord.cfg for the webhook name
// -
// Default: "<WEBHOOK_URL_HERE>"
discord_webhook "<WEBHOOK_URL_HERE>"

// 1 = Enabled / 0 = Disabled retrieves the players messages on discord.
// -
// Default: "1"
discord_messages "1"

// 1 = Enabled / 0 = Disabled retrieves the players steamid and ip on discord.
// -
// Default: "1"
discord_auth "1"

// 1 = Enabled / 0 = Disabled retrieves the killer and the victim of a kill.
// -
// Default: "1"
discord_killedby "1"

// 1 = Send embed's notifications / 0 = Send normal notification.
// -
// Default: "1"
discord_embed "1"
Changelog
Quote:

  • Added SourceBans support
  • Added server chat logging
  • Added log when a ban is removed from the banlist
  • Added player IP & SteamID.
  • Fixed Say() function.
  • Added cvar for enabling or disabling auth client logging.
  • Added cvar for enabling or disabling kills logging.
  • Added Mute and gag status loggin.
  • Removed discord support from zipcore and added Discord api libraby from Deathknife.
  • Fixed kill message.
  • Added cvar for enable embed or normal discord notification.
  • Added Polish & Turkish translation
  • Fixed Sourcebans plugin


Stefanx 07-21-2020 17:59

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Good plugin, works great

i really like to add support for mute, gag, kick

Benito 07-21-2020 18:02

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Quote:

Originally Posted by Stefanx (Post 2711064)
Good plugin, works great

i really like to add support for mute, gag, kick

I will add it

starcs 07-21-2020 18:30

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
it would be good in the entry and exit log to put the player's IP and STEAMID.

Benito 07-21-2020 19:02

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Quote:

Originally Posted by starcs (Post 2711069)
it would be good in the entry and exit log to put the player's IP and STEAMID.

Its added :)

Balloons 07-21-2020 22:54

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Great addition. Though these have been showing up ��

Quote:

L 07/22/2020 - 02:41:07: [SM] Warning(s) encountered in translation file "discord_notification.phrases.txt"
L 07/22/2020 - 02:41:07: [SM] Invalid token ' ' in #format property on line 37.
L 07/22/2020 - 02:41:52: [SM] Exception reported: Client index 2019848784 is invalid (arg 4)
L 07/22/2020 - 02:41:52: [SM] Blaming: discord_notification.smx
L 07/22/2020 - 02:41:52: [SM] Call stack trace:
L 07/22/2020 - 02:41:52: [SM] [0] Format
L 07/22/2020 - 02:41:52: [SM] [1] Line 74, C:\Users\Benito\Desktop\Discord_Notification\ addons\sourcemod\scripting\discord_notificati on.sp::Say

Benito 07-21-2020 23:10

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Quote:

Originally Posted by Balloons (Post 2711093)
Great addition. Though these have been showing up ******************

Thanks, i updated it.

starcs 07-21-2020 23:18

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
Quote:

Originally Posted by Benito (Post 2711075)
Its added :)

Plugin works fine, nice.

`666 07-22-2020 07:46

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
THanks.

ayrton09_arg 07-22-2020 11:51

Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
 
hi im trying this on cs:s its working but i cant type in the game even if i put discord_messages "0"


All times are GMT -4. The time now is 18:56.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.