Connect discord to server

Started by umar4911, Dec 06, 2017, 01:47 PM

Previous topic - Next topic

umar4911

How to connect discord that server's log is sent to discord

Xmair

There are a lot of ways but the one I use is:
Get a mySQL DB.
Make a discord bot in another language that gets data from the mysql db and echoes it.
In your VCMP server, whenever you want to send a message, do an insert statement to the mySQL db and wait for the discord bot to read it and echo it.

however you cant do any of this is one another thing

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

umar4911

#2
Quote from: Xmair on Dec 06, 2017, 02:06 PMThere are a lot of ways but the one I use is:
Get a mySQL DB.
Make a discord bot in another language that gets data from the mysql db and echoes it.
In your VCMP server, whenever you want to send a message, do an insert statement to the mySQL db and wait for the discord bot to read it and echo it.

however you cant do any of this is one another thing
I know but now I will.

Just tell me that in whch language the bot should be and what is the snippet of connect it in any way

umar4911


umar4911

Quote from: vitogta on Jul 24, 2018, 01:23 PM
Quote from: umar4911 on Apr 22, 2018, 08:34 AMbot made and integrated.
so how you did it?
Well, I used mysql databases to do it.
Server > mysql db > discord (same for the message from discord)
Using id's I made sure that correct message is sent and added a few commands to access from discord to server. Bot is scripted in node.js

I am thinking to improve the bot my creating a connection with socket directly. Is it possible?

Namir


MEGAMIND

#6
I dont need help, everything has been setup.

umar4911

Quote from: MEGAMIND on Jul 26, 2018, 07:31 PMI dont need help, everything has been setup.
he is saying to help me xD.

Btw is it possible to do withb socket?

ysc3839


umar4911

How? I mean just give me direction

!

Yes it is possible.
I had ported mta-discord-bot to vcmp before and it worked.

MTA DISCORD BOT
PORTED Version TO LU

Discord: zeus#5155

MEGAMIND


(SpCy)Alex


[KM]Helathien

Umar4911 bro, can you pm me of vks forum about how did you make the bot. Thanks
Feel free to PM me for any help.
If I am not available on the forum come to VKs Official Server I am usually there.

!

Quote from: [KM]Helathien on Jul 28, 2018, 12:05 PMUmar4911 bro, can you pm me of vks forum about how did you make the bot. Thanks
There is a ready made bot by Necktrox if you know a bit about node.js this is the link which will help you.
Quote from: ! on Jul 27, 2018, 04:36 PMYes it is possible.
I had ported mta-discord-bot to vcmp before and it worked.

MTA DISCORD BOT
PORTED Version TO LU


Discord: zeus#5155