BrickGrass / StarlightGlimmer

A pixel website utility bot
Other
3 stars 5 forks source link

Rewrite template adding/updating flow #14

Open BrickGrass opened 4 years ago

BrickGrass commented 4 years ago

Just realised the update command only works for pixelcanvas, so I should refactor so every canvas works, but if I'm gonna do that I should finally rework how templates get added and manipulated in general, it's a bit of a mess rlly.

I need some classmethods on the template object that handle stuff I think. Name and md5 checking and file downloading and processing etc. Since I'm working on update, I may as well allow you to change more stuff about them, transfer a template to a different canvas, change the owner? (Though I think g!add's update bit or just g!update do that as a side effect sometimes right now? I'll have to see.) Alert stuff and snapshot stuff can stay where it is right now, that feels out of scope for update.