specahawk

[SHOW] - MTA - Discord integration API

Recommended Posts

@specahawk what to do if i dont want to appear the team name i mean in the video your team was Founders @discord

and when you typed 

This is the message

(Discord) (Founders) (Yourname): text 

now how to dont appear " FOunders " the team name 

Share this post


Link to post

also can u tell me what to do step by step to connect it to MTA ? i cant understand ur video :|

 

Share this post


Link to post

nvm about the past replies 

i've problem now and its the socket module anyone explain it to me please 

Share this post


Link to post

@Necktrox I was running your JS on my Debian 8 machine, but I got 2 Errors, the first was solved thanks to Luca, the second one, isn't fixed which is: SyntaxError: Unexpected Identifier.
at Module._compile (module.js:439:25)
at Object.Module._extensions (module.js:470:10)
at Module.load (module.js:356:32)
...etc what to do?

 

Edited by UPG

Share this post


Link to post
3 minutes ago, Necktrox said:

You need a newer release of Node.js

I'm using the latest one @Necktrox

Share this post


Link to post

You can tell me your node version by typing "node -v" on the command line.

Anyway, your error code doesn't specify the source of the error. You either have an error in your config.json or no config.json file at all.

Share this post


Link to post

2014.06.05, Version 0.10.29 (Stable)

You need a newer release.

Share this post


Link to post

 

3 minutes ago, Necktrox said:

2014.06.05, Version 0.10.29 (Stable)

You need a newer release.

my version is 0.10.29 @Necktrox

Share this post


Link to post

Can you check your PM? I don't know how to upgrade.

Share this post


Link to post

@Necktrox can you please tell me how to use onDiscordUserCommand event? what are the arguments that I can use?

Share this post


Link to post

hello  , anyhelp please ?

i have added sockets to my server and it's working 100%

but the problem still the same ,here :

[2017-08-29 22:46:30] ERROR: discord/socket.lua:66: attempt to index local 'instance' (a nil value)

 

and the src file what does it stand for  and how can i add it to the server ?
 

Edited by Simon|M|

Share this post


Link to post

Can anyone give me an example for sending a command from Discord to MTA.
 

E.G:

!ban random123 reason123
!onlineplayers
 
Btw thank you in advance if anyone could reply.

Share this post


Link to post

Can anyone tell me how to add a command for the bot??! Pls

 

Can anyone tell me how to add a command to this bot??! Pls

Share this post


Link to post
On 30/08/2017 at 02:59, Simon|M| said:

i have added sockets to my server and it's working 100%

but the problem still the same ,here :

[2017-08-29 22:46:30] ERROR: discord/socket.lua:66: attempt to index local 'instance' (a nil value)

Same issue.

Share this post


Link to post

hey i have a question in this point i did not understand what you mean

    <passphrase>equal-to-the-server-passphrase</passphrase>

and where put my token bot?

Share this post


Link to post

here put my token?

        "token": "bot.token"

> bot.token?

Edited by xFabel

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.