AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Discord/Slack API (CallAdmin, SourceBans, ...) (https://forums.alliedmods.net/showthread.php?t=292663)

Furchee 05-06-2018 13:43

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Is there a way one could comment out / remove the global notification in chat when someone reports another player ?
If a player reports another and the other person can see it, 9 times out of 10 they either leave or start flaming the other party.

Obyboby 05-09-2018 08:56

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Quote:

Originally Posted by Furchee (Post 2590975)
Is there a way one could comment out / remove the global notification in chat when someone reports another player ?
If a player reports another and the other person can see it, 9 times out of 10 they either leave or start flaming the other party.

This is something you need to set inside the main calladmin CFG. It is possible already :)

From cfg/sourcemod/plugin.calladmin.cfg:

PHP Code:

// Whether or not a report should be notified to all players or only the reporter.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_calladmin_public_message "0" 


extremeg 05-22-2018 22:21

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Thanks for the sourcebans/sourcecomms integration :D.

GnomeChompski 06-13-2018 20:00

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Has anyone got this working? i'm still having the same issue where the sm_testdiscord spams "[discord.smx] SendNextMsg: Failed To Send Message" no matter what websocket i use from the configs.

ssandiss 07-30-2018 02:13

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Does this plugin support custom messages with information from the Server.

For example.
Let's call the players following:

Player 1 = Steve
Admin 1 = Sandis

I do the command !calladmin in-game. Choose Steve And enter the reason "Own Reason", I put in "Player is disrespecting."
Is there a way to make the Discord message send like @WhateverRole <Player> has been reported by <ReporingPlayer> for <Reason>.

Currently there is no way to see if there is someone abusing the !calladmin system whilst getting the messages through your plugin.
Otherwise. Great plugin!

lugui 09-05-2018 19:11

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
My console is spamming this: [discord.smx] [OnRequestComplete] Request failed

what could cause this?

PHP Code:

    // This should not happen!
    
if(bFailed || !bRequestSuccessful)
    {
        
LogError("[OnRequestComplete] Request failed");
    } 

this does not help much finding the error...


Edit: It was a DNS problem, I fixed the DNS and it is now working again. Tha machine wasn't resolving "discordapp.com"

TandelK 11-23-2018 06:12

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
How can we fix IP of 0.0.0.0 to hostip cvar ?

zipcore 11-24-2018 17:21

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Quote:

Originally Posted by TandelK (Post 2625334)
How can we fix IP of 0.0.0.0 to hostip cvar ?

https://gitlab.com/Zipcore/Discord/b...dmin.sp#L70-80

as you can see here the plugin checks 3 different cvars, if all fail you may set them on your own via a .cfg file or start param. In case you set the ip cvars asw start param remember to put a + in front instead of a -. --> https://developer.valvesoftware.com/...d_Line_Options

zipcore 11-24-2018 17:23

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Quote:

Originally Posted by ssandiss (Post 2606989)
Does this plugin support custom messages with information from the Server.

For example.
Let's call the players following:

Player 1 = Steve
Admin 1 = Sandis

I do the command !calladmin in-game. Choose Steve And enter the reason "Own Reason", I put in "Player is disrespecting."
Is there a way to make the Discord message send like @WhateverRole <Player> has been reported by <ReporingPlayer> for <Reason>.

Currently there is no way to see if there is someone abusing the !calladmin system whilst getting the messages through your plugin.
Otherwise. Great plugin!

Own reasons are supported since they are passed by the calladmin plugin forward

TandelK 11-27-2018 05:56

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Quote:

Originally Posted by zipcore (Post 2625552)
https://gitlab.com/Zipcore/Discord/b...dmin.sp#L70-80

as you can see here the plugin checks 3 different cvars, if all fail you may set them on your own via a .cfg file or start param. In case you set the ip cvars asw start param remember to put a + in front instead of a -. --> https://developer.valvesoftware.com/...d_Line_Options

Actually my +ip is set to 0.0.0.0 and later on Impact made me understand how to use Long Decimal conversion of real IP and use hostip cvar with server.cfg and with this my Steam Module got fixed, actually later on after fixing that he even looked at your code and made a small change in it but i am not publishing it here . Instead of again finding IP checks of 3 different time he just called a function from CallAdmin plugin that returns the IP that was converted by the main plugin itself.


All times are GMT -4. The time now is 15:38.

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