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

[ANY] Discord


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Plugin ID:
5482
Plugin Version:
1.0.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Send message to a discord server/channel
    Old 01-07-2017 , 17:00   [ANY] Discord
    Reply With Quote #1

    You like this plugin or my work? Support is not a crime.

    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 )
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.

    Last edited by Bara; 12-12-2021 at 15:03.
    Bara is offline
    spot
    Senior Member
    Join Date: May 2009
    Old 01-07-2017 , 18:33   Re: [ANY] Discord
    Reply With Quote #2

    Cool, maybe this can be used a !calladmin Come to server1, cheater here...?

    Last edited by spot; 01-07-2017 at 18:33.
    spot is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 01-08-2017 , 08:38   Re: [ANY] Discord
    Reply With Quote #3

    Quote:
    Originally Posted by spot View Post
    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
    __________________

    Last edited by zipcore; 01-08-2017 at 08:39.
    zipcore is offline
    _GamerX
    AlliedModders Donor
    Join Date: Jun 2011
    Location: Fun Server
    Old 01-08-2017 , 09:17   Re: [ANY] Discord
    Reply With Quote #4

    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?
    __________________

    Last edited by _GamerX; 01-08-2017 at 09:48.
    _GamerX is offline
    Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
    DramaLlama
    Member
    Join Date: Jan 2015
    Location: Vancouver
    Old 01-08-2017 , 20:43   Re: [ANY] Discord
    Reply With Quote #5

    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"
    __________________

    DramaLlama is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 01-08-2017 , 22:13   Re: [ANY] Discord
    Reply With Quote #6

    Quote:
    Originally Posted by DramaLlama View Post
    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.
    Mitchell is offline
    m_bNightstalker
    Senior Member
    Join Date: Jan 2015
    Location: JWD
    Old 01-09-2017 , 03:35   Re: [ANY] Discord
    Reply With Quote #7

    Quote:
    Originally Posted by _GamerX View Post
    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
    m_bNightstalker is offline
    MaloModo
    Veteran Member
    Join Date: Aug 2008
    Old 01-09-2017 , 14:04   Re: [ANY] Discord
    Reply With Quote #8

    Quote:
    Originally Posted by zipcore View Post
    Are you going to create a thread for this?
    MaloModo is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 01-10-2017 , 00:18   Re: [ANY] Discord
    Reply With Quote #9

    something similar i made a while ago: https://github.com/shavitush/smdiscord
    __________________
    retired
    shavit is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 01-10-2017 , 02:21   Re: [ANY] Discord
    Reply With Quote #10

    Quote:
    Originally Posted by MaloModo View Post
    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 View Post
    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.
    __________________
    zipcore 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 01:18.


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