Files
Korab Arifi 38e1d00673 Update Discord JS w/ Slash Commands (#218)
* 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>
2021-11-01 09:30:23 -07:00
..
2021-02-04 02:50:41 +00:00

title, description, tags
title description tags
Discord bot A Discord bot written in JavaScript
discord.js
javascript

Discord.js Example

This example starts a Discord bot using discord.js.

Deploy on Railway

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 Commands directory. You can take a look at the Template.js file 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.