Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Xenoadria
Member
Join Date: Oct 2016
Old 02-28-2017 , 15:36   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #51

Hello. First I have to say great plugin and thank you for creating this.
I only want to use calladmin for discord. I managed to do everything, and report works, it comes on the specified channel, it mentiones the specified role. Works like a charm. However when I want to "claim" the report from the server, nothing happens.
Error logs shows this:
L 02/28/2017 - 2122: [SM] Exception reported: Cannot replace searches of empty strings
L 02/28/2017 - 2122: [SM] Blaming: discord_calladmin.smx
L 02/28/2017 - 2122: [SM] Call stack trace:
L 02/28/2017 - 2122: [SM] [0] ReplaceString
L 02/28/2017 - 2122: [SM] [1] Line 103, D:\Workspace\Projects\Discord\scripting\disco rd_calladmin.sp::Cmd_Claim
Xenoadria is offline
kamild1996
Senior Member
Join Date: May 2011
Old 04-08-2017 , 08:10   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #52

Just leaving a note here that the plugin works perfectly fine, thank you!

PS: If you seem to only receive the "@here" mention on Discord without any details about the report, make sure you added "/slack" at the end of the Webhook URL in the config.
kamild1996 is offline
WeDoItLive
Member
Join Date: Mar 2015
Old 05-23-2017 , 11:01   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #53

Quote:
Originally Posted by thedudeguy1 View Post
Hello. I'm a complete novice with discord webhooks and I am trying to get the calladmin to work with discord but I can't seem to get it working. I tried using sm_testdiscord with my webhook :
Code:
sm_testdiscord https://discordapp.com/api/webhooks/severalNumbers/aCombinationOfALotOfNumbersAndLettersVaryingInCase hello?
and the following was returned:

Code:
Error: Webhook: https://discordapp.com/api/webhooks/severalNumbers/onlyTheFirstEightCharactersOfTheStringThatComesAfterTheNumbers - Url:
Is there something I'm doing wrong?
A bit late to the party on this one but, for anyone else having trouble as well.
It means module instead of webhook so,
Code:
sm_testdiscord calladmin Hello world!
This would work for the calladmin part, or just replace with sourcebans or sourcecomms.
WeDoItLive is offline
TandelK
Member
Join Date: Jun 2015
Location: Surat, India
Old 07-19-2017 , 08:43   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #54

I am getting error for Discord.smx failed to send message
__________________
TandelK is offline
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 07-31-2017 , 04:42   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #55

Hi

"Discord"
{
"calladmin"
{
"url" "https://discordapp.com/api/webhooks/316213748928872460/ignore/slack"
}
"sourcebans"
{
"url" "https://discordapp.com/api/webhooks/316213748928872460/ignore/slack"
}
"sourcecomms"
{
"url" "https://discordapp.com/api/webhooks/316213748928872460/ignore/slack"
}
"test_discord"
{
"url" "https://discordapp.com/api/webhooks/316213748928872460/ignore/slack"
}
"test_slack"
{
"url" "https://discordapp.com/api/webhooks/316213748928872460/ignore/slack"
}
}

L 07/31/2017 - 042:57: [discord.smx] [OnRequestComplete] Bad Request! Error Code: [400]. Check your message, the API doesn't like it! Message:

found problem

message not send if ® utf-8 simbol added

how to add utf-8 simbols?

Last edited by dedimark; 07-31-2017 at 05:47.
dedimark is offline
P4R4DiSi4C
AlliedModders Donor
Join Date: Nov 2016
Old 08-01-2017 , 17:09   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #56

Hello,

everything is working fine THOUGH...!claim doesn't work and drops this error:

Quote:
L 08/01/2017 - 23:08:40: [SM] Exception reported: Cannot replace searches of empty strings
L 08/01/2017 - 23:08:40: [SM] Blaming: discord_calladmin.smx
L 08/01/2017 - 23:08:40: [SM] Call stack trace:
L 08/01/2017 - 23:08:40: [SM] [0] ReplaceString
L 08/01/2017 - 23:08:40: [SM] [1] Line 105, D:\Workspace\Projects\Discord\scripting\disco rd_calladmin.sp::Cmd_Claim
L 08/01/2017 - 23:08:40: [SM] [3] ServerCommandEx
L 08/01/2017 - 23:08:40: [SM] [4] Line 400, /home/builds/sourcemod/linux-1.8/build/plugins/basecommands.sp::Command_Rcon
Regards
P4R4DiSi4C is offline
P4R4DiSi4C
AlliedModders Donor
Join Date: Nov 2016
Old 08-05-2017 , 10:35   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #57

Quote:
Originally Posted by P4R4DiSi4C View Post
Hello,

everything is working fine THOUGH...!claim doesn't work and drops this error:



Regards
Any news ?
P4R4DiSi4C is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 08-30-2017 , 12:23   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #58

For some reason, my Sourcebans and Sourcecomms is not working.

discord_sourcebans.cfg
Quote:
// This file was auto-generated by SourceMod (v1.8.0.6024)
// 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://bans.scriptkidz.com/index.php?p=banlist&searchText={STEAMID}"

// Config key from configs/discord.cfg.
// -
// Default: "sourcebans"
discord_sourcebans_webhook "sourcebans"
discord_sourcecomms.cfg
Quote:
// This file was auto-generated by SourceMod (v1.8.0.6024)
// 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: "https://sb.eu.3kliksphilip.com/index.php?p=commslist&searchText={STEAMID}"
discord_sourcecomms_url "http://bans.scriptkidz.com/index.php?p=commslist&searchText={STEAMID}"

// Config key from configs/discord.cfg.
// -
// Default: "sourcecomms"
discord_sourcecomms_webhook "sourcecomms"
discord.cfg
Quote:
"Discord"
{
"calladmin"
{
"url" "https://discordapp.com/api/webhooks/351015888830464000/r8W6TDb-nk2IOHEj4S4OWlfZh5Yn98kaCn0QP42h8SbBOVKUwNncB JV4qUjU8D3pNOL7/slack"
}
"sourcebans"
{
"url" "https://discordapp.com/api/webhooks/351015888830464000/r8W6TDb-nk2IOHEj4S4OWlfZh5Yn98kaCn0QP42h8SbBOVKUwNncB JV4qUjU8D3pNOL7/slack"
}
"sourcecomms"
{
"url" "https://discordapp.com/api/webhooks/351015888830464000/r8W6TDb-nk2IOHEj4S4OWlfZh5Yn98kaCn0QP42h8SbBOVKUwNncB JV4qUjU8D3pNOL7/slack"
}
"test_discord"
{
"url" "https://discordapp.com/api/webhooks/351015888830464000/r8W6TDb-nk2IOHEj4S4OWlfZh5Yn98kaCn0QP42h8SbBOVKUwNncB JV4qUjU8D3pNOL7/slack"
}
"test_slack"
{
"url" "https://discordapp.com/api/webhooks/351015888830464000/r8W6TDb-nk2IOHEj4S4OWlfZh5Yn98kaCn0QP42h8SbBOVKUwNncB JV4qUjU8D3pNOL7/slack"
}
}
calladmin is working fine. Just sourcebans and sourcecomms are not working for some reason.
lilpetri is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 08-30-2017 , 14:30   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #59

If you're using SB++ it will need modifications for those natives, I will post my version that works with SB++ when I get home from work.
__________________
sneaK is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 08-30-2017 , 15:33   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #60

Quote:
Originally Posted by sneaK View Post
If you're using SB++ it will need modifications for those natives, I will post my version that works with SB++ when I get home from work.
Thanks a lot man! Keep me updated!

I appreciate your time and effort

- Petri
lilpetri 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 06:05.


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