Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot setup + custom Event/SlashCommand handler

kuliran 08.31.2024
Learning Typescript and Node.js for the first time

The package (initHandler) allows to organize command and event modules under different folders that describe separate systems
rather than putting every module inside single "commands" and "events" folders, which can make it hard to edit specific systems (in the case of a multifunctional bot)

It also uses `.env` module to keep the sensitive info protected from getting leaked on GitHub (with .gitignore file) 

Hierarchy example (in src folder):
    systems (folder)

        levelling (folder)
            commands (folder)
                getExp (file)
            events (folder)
                messageCreate (folder)
                    giveExp (file)

        welcomeMessage (folder)
            commands (folder)
                configure-channel (file)
                remove-channel (file)
            events (folder)
                memberAdded (folder)
                    printWelcomeMessage (file)

About

My first little experience with Node.js, TypeScript and discord.js API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages