ayubun / discord-ttl

A simple-to-selfhost Discord bot that deletes server messages older than a configurable TTL (time to live)
MIT License
35 stars 4 forks source link

discord application command framework (`bunny.ts`) #13

Closed ayubun closed 9 months ago

ayubun commented 1 year ago

The scope of this PR felt like it got too big so I am going to cap it off by using it to finish bunny.ts, a command handler for discord.js :D It will be usable in other discord.js projects without much effort (copy-and-paste a single file sort of deal).

I'm mostly doing this for fun... there are plenty of Discord.js application command handlers out there, but I wanted to make my own!

After this PR, Discord TTL will support slash commands. The database API will need to be finished before they can actually do anything valuable, though. Then, #9, #11, and #17 will all be complete 😄

Screenshot 2023-12-11 at 12 14 42 PM Screenshot 2023-12-13 at 5 51 28 PM Screenshot 2023-12-13 at 5 52 49 PM
ayubun commented 10 months ago

i'm moving the .env updater script task to a different pr. it's an interesting thing to add before the next update, but it feels out of scope here

ayubun commented 10 months ago

im gonna get the command handler working and then merge this gorlie; other stuff will be fixed in another pr (it's just getting a bit large)