-
-
Notifications
You must be signed in to change notification settings - Fork 437
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 Discord integration for servers #3664
base: master
Are you sure you want to change the base?
Add Discord integration for servers #3664
Conversation
Moved discord to CResource Easier to manager, multiple bots can be hosted in one server. Added DiscordGuild type for lua
bcc0a03
to
1e3c644
Compare
hopefully
+9999 new functions, +99999 new events, +158,832 lines of code ( to be exact ), +9999% more issues - thats how i imagine introduction of this feature, for what? to get complains from people that discord changed api, and now function X not working or they added new feature that is not supported and now people need to wait half a year to be available, crashes, more crashes, more complains that something not working, tons of code to maintain, just time spent on creating new wiki pages for aal new functionality will be massive. I know how many functions such libraries has, i use one on my own, discord keep chaning/adding new features, mta can't keep up with updating existing way way way smaller libraries. Just make better http and socket support and tell people to use node.js/c#/python/brainfuck/zig/fortran/assembly to make their own bot. Oh and most important: people already are using bots outside mta, they probably won't migrate :) This is not my favourite physics library that NEEDS to be inside mta to function properly. |
i agree with CrosRoad here. This would be a hassle to maintain |
Nah, it wouldnt. Its the same as with node or any other discord lib. Users would need to update their bot if breaking changes happen either way. |
Updating the bot is easy, but updating this lib in mtasa-blue takes more time and as he said, there's not as big and active of a developer community like js |
Why reinvent the wheel when we can use the existing solutions |
I appreciate your effort in creating this @TracerDS but the existing popular frameworks are already being used by servers and have great and quick updates to them |
There is a huge and active community for dpp. It wouldnt take more time. The same time as for other languages even. |
This is only a webhook and not a bot. Not the same solution. It has limitations and it obviously isnt implemented as native feature |
This is not webhook, this is bot with sockets module |
Previous versions used to act just like webhook (no profile, just sending info). Dunno if that changed over time. |
Found 3 more issues:
|
|
As the owner and developer of mtasa-discord-bot I have to disappoint you, because it always used discord.js for sending messages back and forth; and never webhooks. If you need more features in that repo/from Discord API, then fork it and use it via discord.js - it's probably the best Discord API library you can find. |
My bad, thought it offered webhook functionality in the past. Nvm it then. Either way having a native solution is much better than connecting to external api tbf |
your pull request should be just regular resource, thats wy i mentioned to make better socket and http support. I don't want to turn off my server to update discord functions due to update from discord itself ^ i learned that myself when i had discord bot built in server, cool i can just call discord api from inside command directly, but maintenance was the worst |
With how things go these days updates wont be frequent. Why is that a problem? |
Updates are not the worst, performance wise it can be bad especially big servers, and why 1 resource = 1 bot? maybe i want 2 bots in one resource? i myself use two bots, one for development, second for production, people may want to do the same, how they are going to do that? loadstring? you know modules are in development hell right now and we won't see them until gta7 |
First the discord bot must be ready. Then we can think of making multiple bots per resource |
This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically. |
This PR will allow any server to setup their own discord bots, send messages to discord channels, etc.
Current functions:
Current
discordOnEvent
events: