Raised This Month: $12 Target: $400
 3% 

[ANY] Discord Notification (Join, Ban, Disconnect, Map, Kills, Chat)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
Benito
Member
Join Date: Jul 2018
Location: Belgique - Belgium
Plugin ID:
7214
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, GitHub links are broken, fix it and use the Report Post button for a new review.
    Old 07-21-2020 , 15:34   [ANY] Discord Notification (Join, Ban, Disconnect, Map, Kills, Chat)
    #1

    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

    Embed


    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
    __________________

    Last edited by Benito; 07-30-2020 at 11:33.
    Benito is offline
    Stefanx
    Member
    Join Date: Feb 2018
    Location: Romania
    Old 07-21-2020 , 17:59   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #2

    Good plugin, works great

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

    Last edited by Stefanx; 07-21-2020 at 17:59.
    Stefanx is offline
    Benito
    Member
    Join Date: Jul 2018
    Location: Belgique - Belgium
    Old 07-21-2020 , 18:02   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #3

    Quote:
    Originally Posted by Stefanx View Post
    Good plugin, works great

    i really like to add support for mute, gag, kick
    I will add it
    Benito is offline
    starcs
    Member
    Join Date: Nov 2018
    Old 07-21-2020 , 18:30   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #4

    it would be good in the entry and exit log to put the player's IP and STEAMID.
    __________________
    Founder of ⭐ STRTEAM
    starcs is offline
    Benito
    Member
    Join Date: Jul 2018
    Location: Belgique - Belgium
    Old 07-21-2020 , 19:02   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #5

    Quote:
    Originally Posted by starcs View Post
    it would be good in the entry and exit log to put the player's IP and STEAMID.
    Its added
    Benito is offline
    Balloons
    Member
    Join Date: Feb 2020
    Old 07-21-2020 , 22:54   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #6

    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
    Balloons is offline
    Benito
    Member
    Join Date: Jul 2018
    Location: Belgique - Belgium
    Old 07-21-2020 , 23:10   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #7

    Quote:
    Originally Posted by Balloons View Post
    Great addition. Though these have been showing up ******************
    Thanks, i updated it.
    Benito is offline
    starcs
    Member
    Join Date: Nov 2018
    Old 07-21-2020 , 23:18   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #8

    Quote:
    Originally Posted by Benito View Post
    Its added
    Plugin works fine, nice.
    __________________
    Founder of ⭐ STRTEAM
    starcs is offline
    `666
    AlliedModders Donor
    Join Date: Jan 2006
    Old 07-22-2020 , 07:46   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #9

    THanks.

    Last edited by `666; 07-22-2020 at 07:47.
    `666 is offline
    ayrton09_arg
    Senior Member
    Join Date: Nov 2017
    Old 07-22-2020 , 11:51   Re: [ANY] Discord Notification (Join, Ban, Disconnect, Map)
    #10

    hi im trying this on cs:s its working but i cant type in the game even if i put discord_messages "0"

    Last edited by ayrton09_arg; 07-22-2020 at 11:59.
    ayrton09_arg is offline
    Closed Thread


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:46.


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