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)

BiohazardLucifer 05-27-2021 17:40

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
[discord_utilities.smx] SteamAPI HTTP Response failed: 503

why?

Tacklezin 07-04-2021 15:16

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
[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?

Elie 01-18-2022 20:23

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
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

WhiteAngel4 08-16-2022 08:04

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
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.......

USER555 12-03-2022 09:58

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
server crashes on sm 1.11 after a discord report is sent

Dynamilk 12-04-2022 21:01

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

Originally Posted by USER555 (Post 2794279)
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.

Dragonisser 12-11-2022 09:52

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Is there a way to trigger multiple webhooks? So Sourcebans would send the information to 2 discord servers?

Dragonisser 01-23-2023 11:24

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
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

Dragonisser 09-07-2023 04:04

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
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


All times are GMT -4. The time now is 11:44.

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