RiiConnect24 / RiiTag-Next

A customizable Gamertag for Wii, Wii U and more! Now powered by Next.js.
https://tag.rc24.xyz
GNU Affero General Public License v3.0
15 stars 14 forks source link

Integrate Discord rich presence bot into main server #16

Open larsenv opened 2 years ago

larsenv commented 2 years ago

We run a bot on our server that updates the RiiTag based on rich presence from users playing Dolphin, Citra, or Cemu. It would be good to integrate this with RiiTag-Next because it's using the SQLite3 database of the old server to read user keys. Anyone new that makes a RiiTag won't be able to use this feature.

Another reason it would be good to integrate this with RiiTag-Next is because our current bot sends an HTTP request to the RiiTag server. Implementing it with the main server could allow the tag to update without sending an HTTP request.

The code for the emulator bot is here. https://github.com/RiiConnect24/RiiTag-Emulator-Bot

Brawl345 commented 2 years ago

Undecided if I want to have this in the server source, there is also no good place to initialize background stuff in NextJS. Maybe as an independent script that uses dotenv + prisma for the database integration?