How to create a discord echo

Started by MadMax, Jun 28, 2018, 09:37 AM

Previous topic - Next topic

MadMax

How can I connect my server to discord ? Kindly mention the ways, and the languages required to make It.

umar4911

I made using node(json). I used mysql. The message sent by a player is added in the mysql database. Using discord script, the bot checks constantly for any new entry in the database. On arriving, it messages that to the discord and same happens for any discord message.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

umar4911

Quote from: vitogta on Jun 30, 2018, 05:44 AMDo you located mysql at disk or ram?
I didn't get you. If talking about connection, thats a web.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

umar4911

Quote from: vitogta on Jun 30, 2018, 06:03 AM
Quote from: umar4911 on Jun 30, 2018, 05:55 AMI didn't get you. If talking about connection, thats a web.
I'm afraid constant I/O with disk can cause server lag.
still didn't get you.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

ysc3839

The easiest way to do that is writing a external program that connect to Discord and communicate with VCMP server using a socket.
A more difficult way is writing a VCMP server plugin.

umar4911

Quote from: ysc3839 on Jul 01, 2018, 03:50 AMThe easiest way to do that is writing a external program that connect to Discord and communicate with VCMP server using a socket.
A more difficult way is writing a VCMP server plugin.
How about just checking from a mysql db and message to server.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

ysc3839

@umar4911 #7 It works. But I think it's not a good solution.

=RK=MarineForce

hey can u ask Kiki . he added in our  server plugins 0.4 i hope he will help u