Raised This Month: $93 Target: $400
 23% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 07-28-2019 , 01:54   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #131

Quote:
Originally Posted by Niklavs View Post
Code:
L 07/27/2019 - 12:52:19: [discord.smx] [OnRequestComplete] Bad Request! Error Code: [400]. Check your message, the API doesn't like it! Message: "{"username":"Reporter", "content":"","attachments": [{"color": "#ff9911","title": "[DEXP.EU] AWP Only Server | 128ticks | !knife & !ws (steam://connect/145.239.18.221:27015) # GS-90","fields": [{"title": "Reason","value": "Wallhack","short": true},{"title": "Reporter","value": "Niklavs (STEAM_1:1:201912335)","short": true},{"title": "Target","value": "Morrzy (STEAM_1:1:507284144)","short": true}]}]}"
do you make a webook on your discord? or miss to put the webhook url in the cfg or the bot have no perms to send a message in the discord channel?
__________________
freak.exe_uLow is offline
Niklavs
Member
Join Date: Nov 2018
Location: Latvia
Old 07-28-2019 , 04:56   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #132

Quote:
Originally Posted by freak.exe_uLow View Post
do you make a webook on your discord? or miss to put the webhook url in the cfg or the bot have no perms to send a message in the discord channel?
Quote:
Originally Posted by Niklavs View Post
All it does is send sm_claim correctly, but for calladmin it just sends "Test"
https://prnt.sc/ol0usc

I did set all correctly, year ago I had this working, but now installing back again it doesn't.
Niklavs is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 07-28-2019 , 08:23   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #133

Quote:
Originally Posted by Niklavs View Post
https://prnt.sc/ol0usc

I did set all correctly, year ago I had this working, but now installing back again it doesn't.
did you add a "/slack" to end on your webhook?

Edit: read below^^
__________________

Last edited by freak.exe_uLow; 08-11-2019 at 03:23.
freak.exe_uLow is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 08-10-2019 , 20:12   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #134

I just want to clarify something here.

A LOT of people do the same mistake and wonder why this plugin isn't working:

Code:
// Config key from configs/discord.cfg.
// -
// Default: "calladmin"
discord_calladmin_webhook "calladmin"
The cvar description clearly says to use the config key, which is "calladmin" in 99,999% of all cases, it doesn't tell you use a webhook URL here.
__________________
zipcore is offline
Sarge Benny
Junior Member
Join Date: Jan 2016
Old 09-09-2019 , 08:31   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #135

Says my server ip is 0.0.0.0 . Can it get the value of hostip and decode it from long to ip and then send the ip? I cant set +ip to my ip because it would crash the server and if I don't set +ip it says the ip is 0.0.0.0 ...

Edit:

Temporary workaround: add ip youriphere to server.cfg, then reload the discord_calladmin plugin and it'll work properly. I assume because server.cfg exxecutes after the plugin has already started, it would not re get the ip value for some reason? I really dont know.
__________________

Last edited by Sarge Benny; 09-09-2019 at 08:38.
Sarge Benny is offline
lugui
Senior Member
Join Date: Feb 2016
Location: Brasil
Old 09-11-2019 , 15:07   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #136

I'm trying to use the plugin.. but it refuses to work

every config is right. I'm using the discord module and it does not send any message
__________________
lugui is offline
bongotrommler
Member
Join Date: Feb 2013
Location: GG-Elite.Net
Old 09-12-2019 , 13:55   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #137

Is it loaded and the config file is correct / any errors?
you have /slack behind the webhook?
bongotrommler 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 20:59.


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