Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
BiohazardLucifer
Member
Join Date: Dec 2015
Old 05-27-2021 , 17:40   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #171

[discord_utilities.smx] SteamAPI HTTP Response failed: 503

why?
BiohazardLucifer is offline
Send a message via Yahoo to BiohazardLucifer Send a message via Skype™ to BiohazardLucifer
Tacklezin
New Member
Join Date: Jul 2021
Location: Brazil
Old 07-04-2021 , 15:16   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #172

[discord.smx] SendNextMsg: Failed To Send Message
[discord.smx] SendNextMsg: Failed To Send Message
[discord.smx] SendNextMsg: Failed To Send Message
[discord.smx] SendNextMsg: Failed To Send Message
[discord.smx] SendNextMsg: Failed To Send Message

Someone knows how to solve this?
Tacklezin is offline
Elie
New Member
Join Date: Jan 2022
Old 01-18-2022 , 20:23   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #173

Hello,

For me, the message is not sent but the server says it is :
Code:
Message Send: Webhook: test_slack - Message: {"text":"pouet"}
I can send a message with curl with the same webhook URL and the same payload
Elie is offline
WhiteAngel4
Junior Member
Join Date: Jan 2014
Old 08-16-2022 , 08:04   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #174

Hey!

I need a little bit help!

When I install this plugin my server consol starts flooding this:
Code:
[NET] Cannot send 5011-byte packet to *.*.*.*:44359.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:44867.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:44245.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:60342.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:37301.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:51615.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:32774.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:36510.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:51655.  MTU is 1200.  ff ff ff ff 45
[NET] Cannot send 5011-byte packet to *.*.*.*:55910.  MTU is 1200.  ff ff ff ff 45
(Same IP with these ports)

Anyone knows what is the problem?

My discord.cfg
Code:
"Discord"
{
	"calladmin"
	{
		"url"	"https://discord.com/api/webhooks/ASD/ASDASDASD/slack"
	}
}
Oh btw everything works fine.
!calladmin works, sm_testdiscord works just this flooding.......

Last edited by WhiteAngel4; 08-16-2022 at 08:09.
WhiteAngel4 is offline
USER555
Member
Join Date: Aug 2020
Location: Thailand
Old 12-03-2022 , 09:58   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #175

server crashes on sm 1.11 after a discord report is sent
USER555 is offline
Dynamilk
New Member
Join Date: Dec 2022
Old 12-04-2022 , 21:01   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #176

Quote:
Originally Posted by USER555 View Post
server crashes on sm 1.11 after a discord report is sent
Are you also using the Steam module? The Steam module is crashing my server, and after removing it, it worked fine. I'm using SM 1.11 build 6923. Try removing the Steam module and see if it works.

Last edited by Dynamilk; 12-04-2022 at 21:02.
Dynamilk is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 12-11-2022 , 09:52   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #177

Is there a way to trigger multiple webhooks? So Sourcebans would send the information to 2 discord servers?
Dragonisser is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 01-23-2023 , 11:24   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #178

Getting a weird error, receiving the message tho

Code:
L 01/23/2023 - 16:16:27: [discord.smx] Webhook config not found or invalid! Webhook:  Url:
L 01/23/2023 - 16:16:27: [discord.smx] Message: **No name set!** Gek: `n****`
Edit:

^ Regextrigger.smx causes the issue because the config is empty by default

Last edited by Dragonisser; 09-10-2023 at 08:10.
Dragonisser is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 09-07-2023 , 04:04   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #179

Ill see if i can fix it myself: https://github.com/Dragonisser/SM-Discord-Slack

Edit:

Sourcebans++ seemed to have renamed their events so it doesnt fit anymore to what the modules use and therefore never trigger.

Discord webhooks not always require the "/slack" at the end. Plugins like STAC don't like that. If you get any error message about a bad request try with "/slack" or without.

Edit:

I've added a check for any plugin that tries to call the function to send a message to a webhook. It now prints the following when:

- no webhook specified: Plugin 'xxxxxxx.smx' tries to call a Discord/Slack webhook but none was specified
- no message specified: Plugin 'xxxxxxx.smx' tries to call a Discord/Slack webhook but no message was specified

https://github.com/Dragonisser/SM-Di...leases/tag/1.1

Last edited by Dragonisser; 09-10-2023 at 08:09.
Dragonisser is offline
Reply



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 08:46.


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