New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands to Discord bot #223

JarnoVgr opened this Issue Sep 29, 2016 · 2 comments


None yet
2 participants

JarnoVgr commented Sep 29, 2016

Unsure whether it's better to integrate in Lua scripts or the NodeJS apps. Probably Lua because the MTA server is aware of all the data and the nodejs app is just a gateway.

Commands examples: !players !seen !admins

@JarnoVgr JarnoVgr self-assigned this Sep 29, 2016

@JarnoVgr JarnoVgr added the feature label Sep 29, 2016


This comment has been minimized.

Necktrox commented Oct 3, 2016

Look into discord-events here.
There is an event trigger for the command packet and the author table contains the user roles from Discord. See TextCommandPacket.js for more information. You can check if a player has a certain role for access control. is a string list of the role names of the user on Discord.

I should add here, that I have to rewrite the relay gateway and the MTA resources; to update discord.js to the latest version and to syncronize Discord like the IRC resource does with servers and users.


This comment has been minimized.


JarnoVgr commented Oct 3, 2016

Great info @Necktrox . Will look into it.
Thanks for providing your Discord resources open-source! 👍

@EsDeKa EsDeKa closed this in e82d9a0 Oct 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment