mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
* Changed up discord.js starter I added prefixes to commands, and made it so it makes the content lowercase when checking for commands so if a user says "!pInG" it is still going to work * New discord.js starter Made the discord.js starter use slash commands and a handler! * Update examples/discordjs/src/index.js Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Update examples/discordjs/README.md Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Made some new changes * Update examples/discordjs/src/index.js Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Changed indentation * Update examples/discordjs/src/index.js Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Update examples/discordjs/README.md Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Formatted code with prettier * Update examples/discordjs/src/index.js Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Update examples/discordjs/src/index.js Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> * Update README.md * Update examples/discordjs/README.md Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com> Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com>
title, description, tags
| title | description | tags | ||
|---|---|---|---|---|
| Discord bot | A Discord bot written in JavaScript |
|
Discord.js Example
This example starts a Discord bot using discord.js.
✨ Features
- Discord.js
- JavaScript
💁♀️ How to use
- Install dependencies
yarn - Connect to your Railway project
railway link - Start the bot
railway run yarn dev
📝 Notes
- Upon the first run of the starter, it can take up to an hour for your slash commands to be visible in the Discord Client.
- To create a new command, just create a file in the
Commandsdirectory. You can take a look at theTemplate.jsfile for an example of what commands should look like. For any additional help see the discord.js guide. - If you need any additional help with this, join our Discord server and create a thread in the project help channel.