Addon Idea - looking for info/advice from developers
Posted: Thu Mar 30, 2023 9:14 am
Hey!
I'd like to make an addon that autokicks warband members who aren't in a discord voice channel - similar to the way Autoband kicks you if you're too far away from the leader for too long.
This will obviously need a Discord bot/api client for which there is a lua library, but the library needs luvit which I imagine is not possible to use with addons.
With this in mind I have already written a small discord api client in Java (my day job language) which can fetch the voice channel members from a server which has the bot installed. My next steps depend on the capabilities of the addons in RoR. I'm hoping someone here can give me a bit more information about them.
My two ideas for going forward are:
1) My preferred idea is to build a small web server which acts as the Discord api client - the addon would then make a request to the server every 5-10 secs to get the list of channel members. This of course requires addons to be able to call external web services... can they?
2) If this isn't possible, I could create a stand alone app that runs on the user's local machine and writes the voice channel members to a file which the addon then reads. Presumably addons can read files on the local machine.
Any help/advice would be really appreciated. You can also @Ogi in game, or @Ogi#6088 on Discord.
Cheers!
I'd like to make an addon that autokicks warband members who aren't in a discord voice channel - similar to the way Autoband kicks you if you're too far away from the leader for too long.
This will obviously need a Discord bot/api client for which there is a lua library, but the library needs luvit which I imagine is not possible to use with addons.
With this in mind I have already written a small discord api client in Java (my day job language) which can fetch the voice channel members from a server which has the bot installed. My next steps depend on the capabilities of the addons in RoR. I'm hoping someone here can give me a bit more information about them.
My two ideas for going forward are:
1) My preferred idea is to build a small web server which acts as the Discord api client - the addon would then make a request to the server every 5-10 secs to get the list of channel members. This of course requires addons to be able to call external web services... can they?
2) If this isn't possible, I could create a stand alone app that runs on the user's local machine and writes the voice channel members to a file which the addon then reads. Presumably addons can read files on the local machine.
Any help/advice would be really appreciated. You can also @Ogi in game, or @Ogi#6088 on Discord.
Cheers!