TripSit / TripBot

The discord bot on TripSit.Me
22 stars 12 forks source link

Create drug combination chart live #203

Open ghost opened 2 years ago

ghost commented 2 years ago

instead of sending the drug combination through the imgur link which would need to be changed every time there is an update(?) what if the bot made use of https://github.com/TripSit/combogen or such and then had the image generated be uploaded to the platform e.g. on discord when the command is ran.

ajar commented 2 years ago

Hey @haootic, think this is a good idea but should ultimately wait (as far as migration of functionality goes). 

As we've just recently decided to start moving toward a monorepo sort of project which encompasses all functional aspects of TripSit and makes them available easily through a central service, certainly we will want to enhance the combo chart feature to use a cached version of the chart that's updated periodically, most likely alongside the database refresh functionality (see #196) which creates that core JSON from our own wiki as well as PsychonautWiki data from their API. 

Since a decent bit of that was written in Python for table markup generation, we will need to transcode that or support invocation of a foreign binary version if possible. In the interim, I definitely support at least using a self-hosted version of the upcoming design seen in TripSit/combogen#14. Definitely will be good to have the chart in sync with the data over time.