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)

MrDanne 01-13-2017 13:11

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

Originally Posted by zipcore (Post 2486142)
It seems like you have more problems than just installing this plugin.

Your problems are related to problems with multiple extensions:

1. dbi.mysql.ext
2. clientprefs.ext
3. SteamWorks.ext

So this meight not be the right thread for this kind of the support (since your problems have nothing todo with the plugins or plugins at all), but "sm exts list" may gives you a hint whats wrong.

[SM] Displaying 13 extensions:
[01] Automatic Updater (1.8.0.5967): Updates SourceMod gamedata files
[02] Webternet (1.8.0.5967): Extension for interacting with URLs
[03] CS Tools (1.8.0.5967): CS extended functionality
[04] BinTools (1.8.0.5967): Low-level C/C++ Calling API
[05] SDK Tools (1.8.0.5967): Source SDK Tools
[06] Top Menus (1.8.0.5967): Creates sorted nested menus
[07] SDK Hooks (1.8.0.5967): Source SDK Hooks
[08] <FAILED> file "clientprefs.ext.so": Could not find any suitable database configs
[09] <FAILED> file "socket.ext.so": /home/trollskogen/serverfiles/csgo/addons/sourcemod/extensions/socket.ext.so: cannot open shared object file: No such file or directory
[10] <FAILED> file "SteamWorks.ext.so": /home/trollskogen/serverfiles/csgo/addons/sourcemod/extensions/SteamWorks.ext.so: cannot open shared object file: No such file or directory
[11] GeoIP (1.8.0.5967): Geographical IP information
[12] MySQL-DBI (1.8.0.5967): MySQL driver implementation for DBI
[13] SQLite (1.8.0.5967): SQLite Driver


Solved mysql, forgot to open the 3306 port in my fw ;)
clientprefs is another story, can't figure it out.
And SteamWorks... my server only starts with LAN access due to some error when I copied the files.

Do this plugin really need SW?

Will go back to google now... :(

zipcore 01-13-2017 14:47

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

Originally Posted by T1MOXA (Post 2486181)
With sourcecomms the same nonsense!
[discord.smx] [OnRequestComplete] Bad Request! Error Code: [400]. Check your message, the API doesn't like it! Message: "{"attachments": [{"color": "#ffff22","title": "View on Sourcebans","title_link": "http://***/index.php?p=commslist&searchText=STEAM_1:1:** *","fields": [{"title": "Player","value": "T1MOXA ( STEAM_1:1:*** )","true": false},{"title": "Admin","value": "T1MOXA","short": true},{"title": "Gag Length","value": "1 min","short": true},{"title": "Reason","value": "1","short": true}]}]}"

Thats not nonsense. Are you using slack or discord and if discord are you sure you added /slack at the end of your webhook URLs?

Quote:

Originally Posted by rogeraabbccdd (Post 2486156)
I don't think it's sourcecomms's problem.
If time duration is "Session", the time is "-1".

So I add this in "PrePareMsg" in "discord_sourcecomms.sp", and it works.
PHP Code:

if (time == -1
    {
        
sLength "Session";
    } 


You're right I've added this fix.

T1MOXA 01-13-2017 15:55

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

Originally Posted by zipcore (Post 2486205)
Thats not nonsense. Are you using slack or discord and if discord are you sure you added /slack at the end of your webhook URLs?

Was not there before. Now added, changed the map, but nothing has changed.
http://prntscr.com/dvayfh

zipcore 01-13-2017 15:58

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

Originally Posted by T1MOXA (Post 2486230)
Was not there before. Now added, changed the map, but nothing has changed.
http://prntscr.com/dvayfh

And you still get the 400?

T1MOXA 01-13-2017 16:28

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

Originally Posted by zipcore (Post 2486231)
And you still get the 400?

Yay, it worked )
Thank you :)

MrDanne 01-14-2017 05:06

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
Can someone please help me sort this out?

I have followed your instructions to configure this plugin and the only real requirement is CallAdmin, and in that instruction it doesn't say anything about using SteamWorks or anything, only copy the adding files which I have done. If I then install the updater CallAdmin recommends it is require this:
Your server must be running at least one of the following extensions:
cURL
Socket
SteamTools
SteamWorks (recommended)


I installed Socket due to I seem to fail with SteamWorks, and now Updater plugin seem to work fine.

Only Discord plugin whines that it require Steamworks.ext ! And it does not say anywhere that Discord plugin needs SteamWorks to work.

Errors:
discord.smx (Discord API): Required extension "SteamWorks" file("SteamWorks.ext") not running
discord_sourcecomms.smx (Discord: SourceComms): Could not find required plugin "discord"
discord_sourcebans.smx (Discord: SourceBans): Could not find required plugin "discord"
discord_calladmin.smx (Discord: CallAdmin): Could not find required plugin "discord"

Does anyone know how I can get this working?
Going crazy soon

zipcore 01-14-2017 05:34

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

Originally Posted by MrDanne (Post 2486383)
Can someone please help me sort this out?

I have followed your instructions to configure this plugin and the only real requirement is CallAdmin, and in that instruction it doesn't say anything about using SteamWorks or anything, only copy the adding files which I have done. If I then install the updater CallAdmin recommends it is require this:
Your server must be running at least one of the following extensions:
cURL
Socket
SteamTools
SteamWorks (recommended)


I installed Socket due to I seem to fail with SteamWorks, and now Updater plugin seem to work fine.

Only Discord plugin whines that it require Steamworks.ext ! And it does not say anywhere that Discord plugin needs SteamWorks to work.

Errors:
discord.smx (Discord API): Required extension "SteamWorks" file("SteamWorks.ext") not running
discord_sourcecomms.smx (Discord: SourceComms): Could not find required plugin "discord"
discord_sourcebans.smx (Discord: SourceBans): Could not find required plugin "discord"
discord_calladmin.smx (Discord: CallAdmin): Could not find required plugin "discord"

Does anyone know how I can get this working?
Going crazy soon

The CallAdmin requirements are not the same as for the Discord API, just take a look at the errors you listed and you see whats wrong...

MrDanne 01-14-2017 05:54

Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
 
It needs SteamWorks running... ? Sorry, I am totally lost.

zipcore 01-14-2017 07:40

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

Originally Posted by MrDanne (Post 2486394)
It needs SteamWorks running... ? Sorry, I am totally lost.

Totally YES

MrDanne 01-14-2017 07:58

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

Originally Posted by zipcore (Post 2486414)
Totally YES

lol

What are you seeing that I don't? :grrr:
You said that SteamWorks isn't needed with Discord API...


All times are GMT -4. The time now is 14:35.

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