Nos78 / MrData

Discord Bot providing some simple scoring using postgres
GNU General Public License v3.0
3 stars 1 forks source link

Export files backend #19

Open Nos78 opened 4 years ago

Nos78 commented 4 years ago

Rather than have the exporting functionality in the commands/command.js file, the functionality for taking a query/table and putting it into a file should be added to the library functions.

With a modular design, one command could potentially facilitate any number of formats from CSV to JSON and beyond, simply by expanding the library to cope with another format. That way the command stays the same other than adding a parameter to specify what format is needed