aikaterna / aikaterna-cogs

Cogs for Red-DiscordBot by Twentysix26.
Other
108 stars 98 forks source link

[TrickOrTreat] User schema change and auto-migration #290

Closed vertyco closed 1 year ago

vertyco commented 2 years ago

The user key for chocolate has been changed to chocolates to be more uniform with the schema style in-code migrations for the new schema included.

cleanup function will run once on cog load and set the new schema so it doesn't run again afterwards. It will migrate any chocolate the user had to chocolates and then delete the old key.

setup function is also cross dpy compatible now, cog should work for dpy2 bots as well

aikaterna commented 2 years ago

Can you leave the setup as it is please? I am going to be staging dpy2 things elsewhere and I don't really want cogs that work on both.

vertyco commented 2 years ago

Roger that