Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on Dec 06, 2017, 01:47 PM

Title: Connect discord to server
Post by: umar4911 on Dec 06, 2017, 01:47 PM
How to connect discord that server's log is sent to discord
Title: Re: Connect discord to server
Post by: Xmair on Dec 06, 2017, 02:06 PM
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
Title: Re: Connect discord to server
Post by: umar4911 on Dec 06, 2017, 02:49 PM
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
Title: Re: Connect discord to server
Post by: umar4911 on Apr 22, 2018, 08:34 AM
bot made and integrated.
Title: Re: Connect discord to server
Post by: umar4911 on Jul 25, 2018, 04:20 AM
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?
Title: Re: Connect discord to server
Post by: Namir on Jul 26, 2018, 04:40 PM
megamind can help you @MEGAMIND
Title: Re: Connect discord to server
Post by: MEGAMIND on Jul 26, 2018, 07:31 PM
I dont need help, everything has been setup.
Title: Re: Connect discord to server
Post by: umar4911 on Jul 27, 2018, 09:06 AM
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?
Title: Re: Connect discord to server
Post by: ysc3839 on Jul 27, 2018, 02:17 PM
@umar4911 #8 It's possible.
Title: Re: Connect discord to server
Post by: umar4911 on Jul 27, 2018, 04:32 PM
How? I mean just give me direction
Title: Re: Connect discord to server
Post by: ! on Jul 27, 2018, 04:36 PM
Yes it is possible.
I had ported mta-discord-bot to vcmp before and it worked.

MTA DISCORD BOT (https://github.com/Necktrox/mta-discord-bot)
PORTED Version TO LU (https://github.com/Rhytz/lu-discord)
Title: Re: Connect discord to server
Post by: MEGAMIND on Jul 27, 2018, 05:50 PM
Use node.js
Title: Re: Connect discord to server
Post by: (SpCy)Alex on Jul 28, 2018, 09:13 AM
Rest in peace
Title: Re: Connect discord to server
Post by: [KM]Helathien on Jul 28, 2018, 12:05 PM
Umar4911 bro, can you pm me of vks forum about how did you make the bot. Thanks
Title: Re: Connect discord to server
Post by: ! on Jul 28, 2018, 12:52 PM
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 (https://github.com/Necktrox/mta-discord-bot)
PORTED Version TO LU (https://github.com/Rhytz/lu-discord)

Title: Re: Connect discord to server
Post by: Abid on Dec 17, 2018, 10:41 AM
MEGAMIND Give Me Discord i want to talk with u
Title: Re: Connect discord to server
Post by: Abid on Dec 17, 2018, 10:41 AM
@MEGAMIND