How can i have a project with separated commands?


#1

#2

Hey @Bloectasy, welcome to the Glitch forum!

I’m guessing from your screenshot that you’re looking at a Discord bot and you want each command to be in its own file. Is that right? If not, can you give us some more information about what you’re looking to accomplish?

If you are asking about a bot and its commands, you might find it helpful to look at https://glitch.com/edit/#!/discordjs-bot-extended?path=commands/ping.js:1:0. It only has one command, but adding new ones is a matter of adding a new command definition to the commands directory.

Hope this helps!