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

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


Post New Thread Reply   
 
Thread Tools Display Modes
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-23-2018 , 11:56   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #81

Quote:
Originally Posted by TandelK View Post
Anyone got Sourcebans++ working with Discord plugin. If so can you forward me the Download Link of the same.
https://forums.alliedmods.net/showpo...3&postcount=61
__________________
sneaK is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-26-2018 , 00:27   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #82

Is it possible to add a timestamp to the footer that's accurate for every time zone? With node it's simply "new Date()", but I can't quite seem to figure it out with this, if at all. I've attempted to format the time and enter it as directed here: https://discordapp.com/developers/do...ources/channel but no dice.
__________________

Last edited by sneaK; 02-26-2018 at 01:49.
sneaK is offline
Gumiland
Member
Join Date: Jun 2016
Old 02-26-2018 , 18:13   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #83

Alright, so i'm trying to set this up on my test server, and when i run "sm_testdiscord calladmin test" it gives " Unknown command: sm_testdiscord"
It looks like all the plugins are loading, but the commands just nor working.
Quote:
17:119 sm plugins load discord_calladmin
17:119 [SM] Plugin discord_calladmin.smx is already loaded.
17:11:49 sm plugins load discord_sourcebans
17:11:49 [SM] Plugin discord_sourcebans.smx is already loaded.
17:11:53 sm plugins load discord_sourcebans_sbpp
17:11:53 [SM] Plugin discord_sourcebans_sbpp.smx is already loaded.
17:12:05 sm plugins load discord_sourcecomms_sbpp
17:12:05 [SM] Plugin discord_sourcecomms_sbpp.smx is already loaded.
17:12:08 sm plugins load discord_sourcecomms
17:12:08 [SM] Plugin discord_sourcecomms.smx is already loaded.
17:12:15 sm plugins load discord
17:12:15 [SM] Plugin discord.smx is already loaded.
__________________
Gumiland is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-26-2018 , 19:39   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #84

Quote:
Originally Posted by Gumiland View Post
Alright, so i'm trying to set this up on my test server, and when i run "sm_testdiscord calladmin test" it gives " Unknown command: sm_testdiscord"
It looks like all the plugins are loading, but the commands just nor working.
What if you try a real report?
I've just installed the plugin and everything works.
__________________
Obyboby is offline
Gumiland
Member
Join Date: Jun 2016
Old 02-26-2018 , 21:43   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #85

Quote:
Originally Posted by Obyboby View Post
What if you try a real report?
I've just installed the plugin and everything works.
Got it working, thanks for the help.
__________________
Gumiland is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 02-27-2018 , 09:55   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #86

Is it possible to avoid showing everyone on the server when I report a player?
Would be awesome if we could only make the report message visible to special flagged users only, or have a setting to hide it to regular players.

EDIT: Ok I think this is something related to the calladmin "core" plugin itself, and I believe I found the CFG I need for that.
EDIT2: found.

PHP Code:
sm_calladmin_public_message "0" 
In /csgo/cfg/sourcemod/plugin.calladmin.cfg

__________________

Last edited by Obyboby; 02-27-2018 at 10:16.
Obyboby is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-27-2018 , 21:37   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #87

Quote:
Originally Posted by sneaK View Post
Is it possible to add a timestamp to the footer that's accurate for every time zone? With node it's simply "new Date()", but I can't quite seem to figure it out with this, if at all. I've attempted to format the time and enter it as directed here: https://discordapp.com/developers/do...ources/channel but no dice.
Welp, solved my own question, in case anyone is looking to do the same thing.

Use slack formatting, as shown here: https://birdie0.github.io/discord-we...ormatting.html

(use "ts" and GetTime())
__________________
sneaK is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 03-04-2018 , 06:12   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #88

Do I need to have a Discord bot for this to work?
__________________
Werewolf_UK is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-04-2018 , 13:26   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #89

Quote:
Originally Posted by Werewolf_UK View Post
Do I need to have a Discord bot for this to work?
No, this operates using webhooks, read the installation section.
__________________
sneaK is offline
Werewolf_UK
AlliedModders Donor
Join Date: Oct 2010
Location: United Kingdom
Old 03-04-2018 , 16:56   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #90

OK I have got it working now, but now it does not pass messages onto the actual !call bot.

Ideally I'd like to use both the Steam bot and this, but it seems to be an either/or affair. Is there some way to have both working?
__________________
Werewolf_UK 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:30.


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