View Single Post
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-13-2017 , 14:47   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #22

Quote:
Originally Posted by T1MOXA View Post
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 View Post
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.
__________________
zipcore is offline