Skip to content

yutakobayashidev/discordjs-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordjs-sample

chat on Discord

Discord.js starter kit.

Demo

You can invite the BOT from the following URL.

https://discord.com/api/oauth2/authorize?client_id=947872812146769930&permissions=18432&scope=applications.commands%20bot

Function

  • Notify a specific channel when a BOT is added to the server.
  • You can enter the /help command.

Usage

environment variable

Create .env with the following contents on project root dir.

BOT_TOKEN='foo' # Discord BOT TOKEN
BOT_JOIN_LOG_CHANNEL_ID='bar' # Channel ID to be notified

start

Execute the following command in a terminal

# install packages
$ npm install
# start local server
$ node index.js
Bot is online and running in 0 servers!

BOT Development Server

https://discord.gg/S2w4tAZCxC