Stats

2
Projects
18
Devlogs
20
Votes
1
Ships

Coding Time

All Time: 111h 41m
Today: 0h 0m

Member Since

June 19, 2025

Badges

1
🚢
Maiden Voyage
you shipped your first project! the journey begins...

Projects

2
SoM Expedition - Scene 86
2 devlogs • 20 days ago
Discord Slash Commands
16 devlogs • 2 months ago

Activity

Created a basic comment section to be improved (and filled out more) later.

Update attachment

I've made the logo, website BG and header as well as the recommended videos section.

Update attachment
Kapios
Kapios created a project
20d ago

SoM Expedition - Scene 86

This is my submission for the Grand Survey Expedition (see hackclub slack). It's a 'clone' of YT that leads to scenes 1 and 22. It loads the recommended videos and video comments via JS instead of being hardcoded (though they are consts).

SoM Expedition - Scene 86
2 devlogs 0 followers

Had a bit of trouble with the NPM registry (and leaked my bot's token by accident, thankfully discord resets it), but it's published!

Update attachment

Migrator works!

Update attachment

NEW SYNTAX ALERT (and I hope it works!)

Update attachment

So this is how the handler will look. The code is basically copied from discordjs.guide. The app ID and token are in the ctor cause i'm too lazy/have no time/am not smart enough to use a config file even though i planned to.

Update attachment

Started making a config file setup using lilconfig. I don't know if this works but it's something!

Update attachment

Still doesn't look like much has changed, but I've moved the required elements from the builder pattern to the class constructor/function call (see: command name, option name)

Update attachment

Started making the SlashCommandBuilder! There's stuff still missing like localizations, but I think I'm about halfway done with the builder!

Update attachment

All of the individual option types have been implemented! As a bonus, I also learned the basics of semantic commit names and github projects! I'm gonna move on now to making the main command builder or tests idk yet!

Update attachment

I know on the outside it doesn't look like much has changed, but building options for commands is pretty much ready; I just need to implement each option type given by Discord. Then I can move to creating the actual command builder.

Update attachment

Managed to add a choices builder that's used for string, integer and number command options, so that the choices are the only available options as said in the Discord documentation

Update attachment

Progress! (i don't know what i'm doing)

Update attachment

Made a builder class for options, but so far the type inference doesn't really work. I might need to rethink this again.

Update attachment

I redid this another way where the type that converts Discord types into TS types (UsableOptionsType) doesn't take in an array of objects but rather a Record<string, DeliverableOptionData>, because TS couldn't infer types the previous way. But it works!

Update attachment

Type inference from an array works! The DeliverableOptionData interface isn't final of course as Discord also requires stuff like the description of an option, but I'm happy that I got this working!

Update attachment

I'm figuring out TS conditional types and it's very exciting and very confusing at the same time! (mostly confusing)

Update attachment

Set up the repository with 2 packages - the CLI and the Builder. Created the Builder class with a basic function for setting and validating the name of the command.

Update attachment
Kapios
Kapios created a project
70d ago

Discord Slash Commands

TLDR: Create and handle slash commands in discord.js more easily! (boomer take) Making commands for Discord bots used to be simple. You scan the content of messages for your commands and then you reply. Granted, this wasn't exactly efficient, but now you have to do a whole thing with registering commands (and you don't even get a GUI for it!), and then handling each one. I don't want to do that and chances are that neither do you. This tool will give you the option to write fewer lines of code when writing slash commands and a simple Terminal command to register them.

Discord Slash Commands
16 devlogs 0 followers Shipped
Kapios
Kapios joined Summer of Making
100d ago

This was widely regarded as a great move by everyone.