AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Discord Logger V2 (https://forums.alliedmods.net/showthread.php?t=336415)

Benito 02-18-2022 09:25

[ANY] Discord Logger V2
 
Information
This is a update of my previous discord notification plugin who was deleted of my github account

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
  • Compiled with SM 1.11
  • Detect bans (SourceBans)
  • Detect map (Launch, change)
  • Detect client connection & disconnection
  • Detect Kick
  • Detect unban
  • Detect chat
  • Detect kills
  • Detect gag's
  • Print players list alive at end of the round
  • Country flag to discord emoji
  • Can change sending type ( Embed & Normal)
  • Can disable method in the configuration file
  • Can set specific discord tag when the method is sended to discord channel
  • Timer at each X time will be sent the server informations(Map, Players count, etc..à
  • For each method, you can set on which channel the plugin is supposed to send the embedded message(In configs/discord_logger.ini)
  • Can be translated to your own language (FR & EN by default)

Requirements
SteamWorks(Already on Repo)
SmJansson
(Already on Repo)

Screenshot

discord_logger.ini
Code:

"Discord_logger"
{
        "settings"
        {
                "username"                "Sourcemod logger"        // Bot username when a message is sent to the discord channel
                "log_ip"                "1"                                // if value equal 1, when clients join, their IP  will be displayed
                "log_steamid"        "1"                                // if value equal 1, when clients join, their STEAMID(32) will be displayed
                "log_country"        "1"                                // if value equal 1, when clients join, their COUNTRY will be displayed
                "embed"                "1"                                // if value equal 1, the message will be sent as embed format
                "informations_timer"        "240.0"                // if value equal 0.0 the timer information will not display
               
                "auth" // Connection & Disconnection Method
                {
                        "enabled"        "1"                                // If equal 1 the method will be enabled
                        "channel"        "public"                        // This is the channel configured down below
                        "tag"                ""                                // This is the tag that gonna be sended with the message
                }
                "map"
                {
                        "enabled"        "1"
                        "channel"        "public"
                        "tag"                ""
                }
                "bans"
                {
                        "enabled"        "1"
                        "channel"        "private"
                        "tag"                "@here"
                }
                "kick"
                {
                        "enabled"        "1"
                        "channel"        "private"
                        "tag"                "@here"
                }
                "chat"
                {
                        "enabled"        "1"
                        "channel"        "public"
                        "tag"                ""
                }
                "gag"
                {
                        "enabled"        "1"
                        "channel"        "private"
                        "tag"                "@here"
                }
                "kill"
                {
                        "enabled"        "1"
                        "channel"        "public"
                        "tag"                ""
                }
        }
        "webhooks"
        {
                "public" // This is a channel from your discord server
                {
                        "color"        "#0EA2D1" // This is the color of the embed on the left side
                        "url"                "" // And finally this is where you put your webhook url of your channel
                }
                "private"
                {
                        "color"        "#0EA2D1"
                        "url"                ""
                }
        }
}

Download
Github Repository

Bacardi 02-18-2022 11:23

Re: [ANY] Discord Logger V2
 
I don't know about you guys, but showing player IP in public is not nice thing to do, all because those ddos.
(I assume this plugin show player IP on discord for all discord users ?)
But, however. This was just my opinion.

Benito 02-18-2022 11:41

Re: [ANY] Discord Logger V2
 
Quote:

Originally Posted by Bacardi (Post 2771853)
I don't know about you guys, but showing player IP in public is not nice thing to do, all because those ddos.
(I assume this plugin show player IP on discord for all discord users ?)
But, however. This was just my opinion.

Yeah well its a option and i hope the guys who will use it will put it in a private channel or disable the option

KoNLiG 02-18-2022 17:59

Re: [ANY] Discord Logger V2
 
Nice release

qq410525209 03-01-2022 11:05

Re: [ANY] Discord Logger V2
 
Are there any detailed examples?

[discord_api.smx] [DISCORD] Couldn't Retrieve Guilds - Fail 0 0

Benito 03-02-2022 06:05

Re: [ANY] Discord Logger V2
 
Quote:

Originally Posted by qq410525209 (Post 2772809)
Are there any detailed examples?

[discord_api.smx] [DISCORD] Couldn't Retrieve Guilds - Fail 0 0

Add me on discord: MBK#2443

hkkelvin1995 03-20-2022 15:56

Re: [ANY] Discord Logger V2
 
I'm trying to build from the discord_logger.sp but I'm getting error 139: could not find type "DiscordWebHook". I have all .inc files and discord related .sp files prepared. What's still wrong?

Benito 03-27-2022 19:39

Re: [ANY] Discord Logger V2
 
Quote:

Originally Posted by hkkelvin1995 (Post 2774803)
I'm trying to build from the discord_logger.sp but I'm getting error 139: could not find type "DiscordWebHook". I have all .inc files and discord related .sp files prepared. What's still wrong?

add me on discord: MBK#2443

Merrill 04-16-2022 15:54

Re: [ANY] Discord Logger V2
 
Hello Benito

I just added you on discord as I need help.

Thank you

The Solid lad 06-03-2022 08:13

Re: [ANY] Discord Logger V2
 
This is going to be a really noob question, but do I have to create a discord bot, or just invite a specific one to my discord server?
I uploaded the plugin files to my CS:GO FTP and put my discord channel webhook URL into the .ini, but that's where my wisdom ends. lmao

I think you should add a step-by-step instructions/installation guide section to the main post for ppl like me. lol
Either way, added u on discord for help.


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

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