Raised This Month: $27 Target: $400
 6% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
godzcsgo
Senior Member
Join Date: Jul 2017
Old 01-04-2019 , 10:14   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #111

This does not work anymore, when i add the plugins they do not load on the server and none of the commands work.
godzcsgo is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-04-2019 , 11:46   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #112

Quote:
Originally Posted by godzcsgo View Post
This does not work anymore, when i add the plugins they do not load on the server and none of the commands work.
It does work just fine though. Check your error logs.
__________________
sneaK is offline
godzcsgo
Senior Member
Join Date: Jul 2017
Old 01-04-2019 , 21:44   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #113

Quote:
Originally Posted by sneaK View Post
It does work just fine though. Check your error logs.
I literaly have only these plugins installed, and its a fresh install, please help?

Discord: FeLgen#0001
godzcsgo is offline
godzcsgo
Senior Member
Join Date: Jul 2017
Old 01-05-2019 , 17:52   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #114

Im trying to get SourceBans and SourceComms to appear in discord, i got the calladmin reports to work in discord, but not for sourcebans and sourcecomms,

here are my cfgs:

discord.cfg
Code:
"Discord"
{
	"calladmin"
	{
		"url"	-removed-"
	}
	"sourcebans"
	{
		"url"	"https://discordapp.com/api/webhooks/530964378271612928/TIXjkKtF-acqlRLZyi1DE7ZzYuo999IwuuNKdVyXkghj3xheBMU1iQ3SN85qi74-ljEr"
	}
	"sourcecomms"
	{
		"url"	"https://discordapp.com/api/webhooks/530964544340754442/kNuyJpA7BKVgRrAuixG-NFjubKXUBHJbTJ4rpNOUUgWP4edHM1uZgcRxT7CbY3QqeAIx"
	}
	"test_discord"
	{
		"url"	"https://discordapp.com/api/webhooks/530954288302915604/vyHWgabU7U4BK1_7DoDmaim5_acqjB3sHH3gmty-560W1F4ZNPRendVWJBFUVwScqzh9"
	}
	"test_slack"
	{
		"url"	"https://discordapp.com/api/webhooks/268689253305810944/hJW0vmftQIXaMcfVLdxQ5CXvEIfM0GN0lDmuRunNLPjy_NFi441rPk6KIZKfnFcqFZ-w/slack"
	}
}
discord_sourcebans.cfg
Code:
// This file was auto-generated by SourceMod (v1.9.0.6269)
// ConVars for plugin "discord_sourcebans.smx"


// Discord/Slack attachment color.
// -
// Default: "#ff2222"
discord_sourcebans_color "#ff2222"

// Link to sourcebans.
// -
// Default: "https://sb.eu.3kliksphilip.com/index.php?p=banlist&searchText={STEAMID}"
discord_sourcebans_url "http://hvh.site.nfoservers.com/index.php?p=banlist&searchText={STEAMID}"

// Config key from configs/discord.cfg.
// -
// Default: "sourcebans"
discord_sourcebans_webhook "sourcebans"
discord_sourcecomms.cfg
Code:
// This file was auto-generated by SourceMod (v1.9.0.6269)
// ConVars for plugin "discord_sourcecomms.smx"


// Discord/Slack attachment gag color.
// -
// Default: "#ffff22"
discord_sourcecomms_color_gag "#ffff22"

// Discord/Slack attachment mute color.
// -
// Default: "#2222ff"
discord_sourcecomms_color_mute "#2222ff"

// Discord/Slack attachment silence color.
// -
// Default: "#ff22ff"
discord_sourcecomms_color_silence "#ff22ff"

// Link to sourcebans.
// -
// Default: "http://hvh.site.nfoservers.com/index.php?p=commslist&searchText={STEAMID}"
discord_sourcecomms_url "http://hvh.site.nfoservers.com/index.php?p=commslist&searchText={STEAMID}"

// Config key from configs/discord.cfg.
// -
// Default: "sourcecomms"
discord_sourcecomms_webhook "sourcecomms"
Any help is appriciated, i dont know why it is working sourcebans url is correct and so is the weebhok urls, it worked before on calladmin reports, and it also works when i do the sm_testdiscord command etc, but not sourcebans and sourcecomms.

EDIT:
I have tried adding bot -w/slack after on both, then i tried without the -w and id /slack after the urls instead, still no luck, and as you see in the current config there is no -w or /slack, so i have tried everything, and no there are no logs / errors, and yes it says that it is loaded in plugins list.
"Discord: SourceBans" (1.0) by .#Zipcore
"Discord: SourceComms" (1.1) by .#Zipcore
godzcsgo is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-06-2019 , 14:27   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #115

Sorry for being late, I've update the files on git to work with the latest version of SB++ 1.6.x
__________________
zipcore is offline
Grainz
Junior Member
Join Date: Jan 2016
Old 01-07-2019 , 19:08   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #116

I'm not having any luck getting this to work.
Plugins load without error.
My webhook works when I do my own test using curl.exe on my Windows machine.

I receive this in console:
Quote:
sm_testdiscord test_discord hello
Message Send: Webhook: test_discord - Message: {"content":"hello"}
Edit: Turns out the timer function won't work until the server is awake aka "sv_hibernate_when_empty 0"

Last edited by Grainz; 01-07-2019 at 20:17.
Grainz is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 01-29-2019 , 23:47   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #117

Could you make this plugin post to an SQL DB so I can log report #’s and integrate it into my dashboard?
Notifications is offline
Jealous
New Member
Join Date: Dec 2018
Old 01-31-2019 , 09:49   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #118

https://i.imgur.com/Z6s1wLq.png

Is this the predicted behavior of this plugin? Or did i miss something

The plugin works fine, but I would like my logs to be readable.
Jealous is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-07-2019 , 17:31   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #119

Is it possible to also broadcast kicks and bans on discord? That would be a-w-e-s-o-m-e
__________________
Obyboby is offline
virusking
AlliedModders Donor
Join Date: Jul 2014
Location: Helsinki
Old 02-08-2019 , 19:24   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #120

Quote:
Originally Posted by Obyboby View Post
Is it possible to also broadcast kicks and bans on discord? That would be a-w-e-s-o-m-e
That's what the discord_sourcebans.smx is for, but it does not broadcast kicks. It only broadcasts server bans.
virusking is offline
Reply


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 23:50.


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