001 Posted May 20, 2017 Posted May 20, 2017 @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
001 Posted May 20, 2017 Posted May 20, 2017 also can u tell me what to do step by step to connect it to MTA ? i cant understand ur video
001 Posted June 2, 2017 Posted June 2, 2017 nvm about the past replies i've problem now and its the socket module anyone explain it to me please
Swagy Posted June 5, 2017 Posted June 5, 2017 (edited) @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 June 5, 2017 by UPG
Swagy Posted June 5, 2017 Posted June 5, 2017 3 minutes ago, Necktrox said: You need a newer release of Node.js I'm using the latest one @Necktrox
MTA Team botder Posted June 5, 2017 MTA Team Posted June 5, 2017 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.
Swagy Posted June 5, 2017 Posted June 5, 2017 Here is the SSH console @Necktrox v0.10.29 this is my version
MTA Team botder Posted June 5, 2017 MTA Team Posted June 5, 2017 2014.06.05, Version 0.10.29 (Stable) You need a newer release.
Swagy Posted June 5, 2017 Posted June 5, 2017 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
MTA Team botder Posted June 5, 2017 MTA Team Posted June 5, 2017 You need a newer release of node.js, otherwise it won't work, because the code doesn't work with node.js from 2014. https://nodejs.org/en/download/releases/
Swagy Posted June 5, 2017 Posted June 5, 2017 @Necktrox can you please tell me how to use onDiscordUserCommand event? what are the arguments that I can use?
MTA Team botder Posted June 5, 2017 MTA Team Posted June 5, 2017 2 hours ago, UDC said: @Necktrox can you please tell me how to use onDiscordUserCommand event? what are the arguments that I can use? https://github.com/Necktrox/mta-discord-bot/blob/master/src/library/packets/TextCommandPacket.js#L14
Simon|M| Posted August 30, 2017 Posted August 30, 2017 (edited) 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 August 30, 2017 by Simon|M|
Simon|M| Posted August 30, 2017 Posted August 30, 2017 (edited) On 7/1/2017 at 10:33, karts said: Can you make function for private messages? Here : https://pastebin.com/JqNXsdjJ it's serverside Edited August 30, 2017 by Simon|M|
Layla Posted July 4, 2018 Posted July 4, 2018 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.
Gat Posted July 7, 2018 Posted July 7, 2018 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
Flatliner_ Posted September 4, 2018 Posted September 4, 2018 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. 1
iiv03 Posted September 3, 2019 Posted September 3, 2019 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?
iiv03 Posted September 3, 2019 Posted September 3, 2019 (edited) here put my token? "token": "bot.token" > bot.token? Edited September 3, 2019 by xFabel 1
DaeRoNz Posted January 7, 2020 Posted January 7, 2020 On 05/12/2016 at 03:51, botder said: I have released a self-hosted Discord relay some time ago, but didn't bother posting here or adding documentation. @specahawk, you can tell me to remove this post if you don't want to have this advertising in your thread. Anyway, the code is on GitHub (Necktrox/mta-discord-bot) and it's being used by Mr.Green, one unknown guy and my clan's server. It doesn't support any commands, but the implementation is up to you (the bot recognizes commands with dot (.) prefix). It's running perfectly stable for months. Long time this dont get update. Is any way to make this possible without using relay node.js server (externar things) because people buy the server and dont have acess to install that things. 2
MTA Team botder Posted January 18, 2020 MTA Team Posted January 18, 2020 It didn't require any updates so far. Adding websockets to MTA natively would remove the node.js relay server requirement.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now