benetherington / node-TOM-discord-bot

MIT License
2 stars 0 forks source link

Insta vote #17

Closed benetherington closed 2 years ago

benetherington commented 2 years ago

Splits interactionCreate flow to direct the interaction to either a slash or a button handler.

Adds interaction dir and buttons.js. Maybe one day selects.js will live here too.

buttons.js is small and simple for now, but will get bigger when there are additional types of buttons to handle. It handles insta-voting by updating the database (with the new vote) as well as the Message it's attached to (to update the vote total).

benetherington commented 2 years ago

Aw crap, I'm missing all the new functions I import from sqlite.js. No idea where they went. I was sure they'd be in my stash, but I only have quick placeholders in there that I must have forgotten about and re-written. :/

benetherington commented 2 years ago

Haha okay, I fucked up in 6a4bcc387334e3ae18f99126e0e760d2a3924ce9, resolving conflicts. I accepted incoming changes from main, dropping some of the things I added in 84dc9bb731fa6417c3c580c289b8e82d465ff04a.

Whoops! Let's see how much I can do with git as opposed to copy-pasting everything. :)