Mightyfrong / gth-discord-bot

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

Migrate to REST #1

Open ModisR opened 2 years ago

ModisR commented 2 years ago

By moving to a RESTful API architecture, we will be able to eliminate dependency on the Puppeteer library and simplify the bot code. The steps are as follows:

  1. Call the stub Hello API defined at http://modestas.ruksnaitis.com/gallifreyan/hello.php
  2. Port the languages one by one to the API, switching the bot from using Puppeteer for each one.
  3. Having ported all languages, clean up the bot code, eliminating any references to Puppeteer.
ModisR commented 2 years ago

Making a note here to mentally replace all references to "REST" with "RPC" since the latter protocol is more sensible for a service which processes some input into an output as opposed to managing a database.