AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Discord (https://forums.alliedmods.net/showthread.php?t=292500)

Bara 01-07-2017 17:00

[ANY] Discord
 
You like this plugin or my work? Support is not a crime.
https://www.paypalobjects.com/en_US/..._donate_SM.gif

Send message to a discord server/channel.

Native:
SendMessageToDiscord(const char[] channel, const char[] message);

Command for root admins:
sm_testdiscord <Channel> <Message>

You can add more channels in configs/discord.cfg

https://github.com/Bara/DiscordAPI
( Thanks to ImACow and Phire for their snippet )

spot 01-07-2017 18:33

Re: [ANY] Discord
 
Cool, maybe this can be used a !calladmin Come to server1, cheater here...?

zipcore 01-08-2017 08:38

Re: [ANY] Discord
 
Quote:

Originally Posted by spot (Post 2484481)
Cool, maybe this can be used a !calladmin Come to server1, cheater here...?

I've written this already: https://gitlab.com/Zipcore/Discord/b...d_calladmin.sp

_GamerX 01-08-2017 09:17

Re: [ANY] Discord
 
This is cool! e.g. for reporting players. GJ

Question: If I wanted to use to fetch every chat message, it will use the server's much memory?

DramaLlama 01-08-2017 20:43

Re: [ANY] Discord
 
Umm what am I doing wrong?

Code:

L 01/08/2017 - 17:42:48: [SM] Exception reported: Client index 0 is invalid
L 01/08/2017 - 17:42:48: [SM] Blaming: discord.smx
L 01/08/2017 - 17:42:48: [SM] Call stack trace:
L 01/08/2017 - 17:42:48: [SM]  [0] PrintToChat
L 01/08/2017 - 17:42:48: [SM]  [1] Line 53, D:\GitHub\DiscordAPI\scripting\discord.sp::Command_TestDiscord
L 01/08/2017 - 17:42:48: rcon from "12.12.12.12": command "sm_testdiscord general test"


Mitchell 01-08-2017 22:13

Re: [ANY] Discord
 
Quote:

Originally Posted by DramaLlama (Post 2484838)
Umm what am I doing wrong?

Code:

L 01/08/2017 - 17:42:48: [SM] Exception reported: Client index 0 is invalid
L 01/08/2017 - 17:42:48: [SM] Blaming: discord.smx
L 01/08/2017 - 17:42:48: [SM] Call stack trace:
L 01/08/2017 - 17:42:48: [SM]  [0] PrintToChat
L 01/08/2017 - 17:42:48: [SM]  [1] Line 53, D:\GitHub\DiscordAPI\scripting\discord.sp::Command_TestDiscord
L 01/08/2017 - 17:42:48: rcon from "12.12.12.12": command "sm_testdiscord general test"


If i would have to guess it's because you can't execute that command through console.

m_bNightstalker 01-09-2017 03:35

Re: [ANY] Discord
 
Quote:

Originally Posted by _GamerX (Post 2484607)
This is cool! e.g. for reporting players. GJ

Question: If I wanted to use to fetch every chat message, it will use the server's much memory?

no

MaloModo 01-09-2017 14:04

Re: [ANY] Discord
 
Quote:

Originally Posted by zipcore (Post 2484599)

Are you going to create a thread for this?

shavit 01-10-2017 00:18

Re: [ANY] Discord
 
something similar i made a while ago: https://github.com/shavitush/smdiscord

zipcore 01-10-2017 02:21

Re: [ANY] Discord
 
Quote:

Originally Posted by MaloModo (Post 2485039)
Are you going to create a thread for this?

no, I don't create threads here anymore for my plugins, just in very special cases.

Quote:

Originally Posted by shavit (Post 2485208)
something similar i made a while ago: https://github.com/shavitush/smdiscord

https://gitlab.com/Zipcore/Discord/b.../discord.sp#L7

I know mine is based on your good work.


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

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