Integration of a JavaScript Package for Server Communication and Discord Bots
Bruno
I propose the addition of a feature that allows developers to execute JavaScript via a package, enabling seamless communication between the game server and external applications like Discord bots. Here are the key points of the idea:
--
1 > Execute JavaScript Through a Server-Side Package: Allow developers to set up a JavaScript server or integrate with Node.js to execute custom scripts directly. This would open up possibilities for creating powerful tools, automation, and integrations.
2 > Communication Between the Game Server and External Applications: Introduce a way to send and receive data between the game server and external applications, similar to how front-end web applications communicate with APIs. For example, developers could send data about players or the game state to a Discord bot.
3 > Discord Bot Integration: Provide tools or APIs that enable the creation of Discord bots directly linked to the game server. This would allow commands like /userinfo <id> to return detailed player information such as their name, role, money, job, or other server-specific data. This could be particularly useful for roleplay servers where managing detailed player data is key.
--
This feature would greatly enhance the server-side development ecosystem, enabling advanced integrations and automations that bridge in-game interactions with external platforms.
TheMaxee
with HTTP you can communicate with Node.Js/Discord.JS
Bruno
I know HTTP requests already exist, but I’m proposing a local integrated system where a Node.js server runs directly in the package. This would offer better security (no external exposure), improved performance (fast communication via IPC or WebSockets), and simplicity for developers. It would also enable advanced integrations, like Discord bots or in-game automation, without complex setups, similar to what FiveM offers.