SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 28/04/2017, 10:57 PM   #31
Klopic
Little Clucker
 
Klopic's Avatar
 
Join Date: Mar 2017
Location: Sarajevo, Bosnia and Herzegovina.
Posts: 7
Reputation: 0
Default Re: Discord Connector

Wow, this is nice bro, We expect out of beta
__________________
You can not understand, if you're not one of us!


Horde zla Sarajevo
Klopic is offline   Reply With Quote
Old 29/04/2017, 03:25 PM   #32
Locky_
High-roller
 
Join Date: Jul 2012
Posts: 1,350
Reputation: 244
Default Re: Discord Connector

Code:
 Loading plugin: discord-connector.so
  Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by plugins/discord-connector.so))
CentOS 6.9
__________________
Locky_ is online now   Reply With Quote
Old 29/04/2017, 04:09 PM   #33
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,259
Reputation: 171
Default Re: Discord Connector

CentOS 6 not suported.
Quote:
Q: I get a version GLIBCXX_3.4.15' not found error (or similar). How can I solve this?
A: Update your system. If that still didn't work, you'll need to upgrade your Linux distribution to a version which provides the gcc 4.8 (or higher) compiler. For example, if you're on CentOS 6, which only has gcc 4.4, you'll need to upgrade to CentOS 7.

Last edited by Dayvison_; 29/04/2017 at 06:47 PM.
Dayvison_ is online now   Reply With Quote
Old 29/04/2017, 04:44 PM   #34
ShaharG
Banned
 
Join Date: Apr 2017
Posts: 17
Reputation: 5
Thumbs up Re: Discord Connector

Nice plugin, good job!
please leave a rep by clicking the star.
ShaharG is offline   Reply With Quote
Old 03/05/2017, 07:00 PM   #35
Evocator
Huge Clucker
 
Join Date: Nov 2013
Posts: 483
Reputation: 150
Default Re: Discord Connector

[WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'

Code:
[20:46:01] [DEBUG] CNetwork::OnWsRead
[20:46:01] [DEBUG] OnWsRead: {
    "d": {
        "channel_id": "308945345448681728",
        "emoji": {
            "id": null,
            "name": "👌"
        },
        "message_id": "304444112932458498",
        "user_id": "245543455933484543"
    },
    "op": 0,
    "s": 17,
    "t": "MESSAGE_REACTION_ADD"
}
[20:46:01] [WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'
[20:46:01] [DEBUG] UGE res: {
    "d": {
        "channel_id": "308945345448681728",
        "emoji": {
            "id": null,
            "name": "👌"
        },
        "message_id": "304444112932458498",
        "user_id": "245543455933484543"
    },
    "op": 0,
    "s": 17,
    "t": "MESSAGE_REACTION_ADD"
}
[20:46:01] [DEBUG] CNetwork::WsRead
Evocator is offline   Reply With Quote
Old 03/05/2017, 07:18 PM   #36
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 881
Reputation: 459
Default Re: Discord Connector

Quote:
Originally Posted by Ralfie View Post
[WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'
Ha, that event doesn't seem to be documented in the Discord docs. Thanks for telling!
maddinat0r is offline   Reply With Quote
Old 07/05/2017, 07:39 PM   #37
StackedPizza
Big Clucker
 
StackedPizza's Avatar
 
Join Date: Jun 2015
Posts: 99
Reputation: 2
Default Re: Discord Connector

Sadly but thanks for creating it.
Quote:
[20:11:17] Loading plugin: discord-connector.so
[20:11:17] Failed (libssl.so.10: cannot open shared object file: No such file or directory)

[20:11:20] [debug] Run time error 19: "File or function is not found"
[20:11:20] [debug] DCC_Connect
[20:11:20] [debug] DCC_FindChannelById
[20:11:20] [debug] DCC_SendChannelMessage
[20:11:20] [debug] Run time error 19: "File or function is not found"
[20:11:20] [debug] DCC_Connect
[20:11:20] [debug] DCC_FindChannelById
[20:11:20] [debug] DCC_SendChannelMessage
__________________
StackedPizza is offline   Reply With Quote
Old 16/05/2017, 10:10 PM   #38
Trable
Little Clucker
 
Join Date: Sep 2014
Posts: 6
Reputation: 0
Default Re: Discord Connector

Quote:
Failed (/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by plugins/discord-connector.so))
Ubuntu 14.04 generic x86_64
Trable is offline   Reply With Quote
Old 19/05/2017, 01:48 AM   #39
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 503
Reputation: 58
Default Re: Discord Connector

I've a problem where i see my bot messages ingame which is really annoying, for example if someone say something in the discord chat it would show like: ([discord: ServerBot]: test) if i say test ingame i will see the bot saying it ingame as well ([discord: Player]: test), Why is this happening, Has it happen to anyone else?

PHP Code:
public DCC_OnChannelMessage(DCC_Channel:channel, const author[], const message[])
{
    new 
tmp144 ];
    
format(tmpsizeof (tmp), "[discord: %s]: {FFFFFF}%s"authormessage);
    
SendClientMessageToAll(-1tmp);
    return 
true;

ISmokezU is online now   Reply With Quote
Old 19/05/2017, 05:20 AM   #40
Infra
Big Clucker
 
Infra's Avatar
 
Join Date: Feb 2014
Location: Germany
Posts: 77
Reputation: 9
Default Re: Discord Connector

Quote:
Originally Posted by ISmokezU View Post
I've a problem where i see my bot messages ingame which is really annoying, for example if someone say something in the discord chat it would show like: ([discord: ServerBot]: test) if i say test ingame i will see the bot saying it ingame as well ([discord: Player]: test), Why is this happening, Has it happen to anyone else?

PHP Code:
public DCC_OnChannelMessage(DCC_Channel:channel, const author[], const message[])
{
    new 
tmp144 ];
    
format(tmpsizeof (tmp), "[discord: %s]: {FFFFFF}%s"authormessage);
    
SendClientMessageToAll(-1tmp);
    return 
true;

Just skip it if it's the bot

Code:
if (!strcmp(author, "BOT-NAME", false)) return true;
Infra is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Teamspeak Connector maddinat0r Plugin Development 315 22/11/2017 07:42 PM
Route Connector James_Braga Русский/Russian 9 15/05/2015 09:24 AM
[Map] Connector Gas Tellken Maps 4 01/06/2012 04:04 AM
PSU connector help! patchkinson Everything and Nothing 3 20/03/2010 10:24 PM


All times are GMT. The time now is 03:05 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.