emisandgunz / GunzCord

Discord Bot for GunZ Servers
GNU General Public License v3.0
2 stars 1 forks source link

Research how to use Gunz protocol to capture Duel notifications #3

Open emisandgunz opened 5 years ago

emisandgunz commented 5 years ago

Duel matches are not logged in GunzDB the same way as Clan war matches are, so it's not possible to retrieve Clan war notifications that way.

Consider using something like GunzSharp to connect directly to the matchserver and receive the Duel notifications.

This might also be useful to retrieve Clan War notifications on SQLite based servers.

mhs02 commented 1 year ago

We have some options here.

First option is to modify the gunz source and allow Duel matches to be logged in the database in the same manner as Clan War matches, which the bot can then pull down.

Second option is to use Named Pipes as direct communication between the Matchserver and discord bot. This is not a reliable method, but it would work. I did this for igunz.net to allow linking discord accounts and gunz accounts. It works, but the pipes are sensitive.

Third option is to integrate .NET into the matchserver. My team is currently working on this, with success, but the implementation is far away from being considered stable.

Fourth option is to implement cURL into the matchserver, and a backend self hosted API in the discord bot, allowing HTTP communication between the applications.

I hope this helps.