Skip to content

kiol1812/Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assistant

discord bot using discord.js

Directory Structure

.env
.package.json
yarn.lock
.node_modules/...
src/
├── deploy_commands.js
├── main.js
├── commands/
    ├── first_command
    │   ├── index.js
    │   └── data.csv # or data.js ...
    ├── second_command
    │   └── ...
    ...

Token

add a .env file store your token and client id of discord bot, and store guild id of your discord guild.
refer to build basic discord bot.

Registering Commands

$ yarn upload

Refer to package.json, this command will execute node src/deploy_commands.js. In other words, It'll run a script that registering all commands which under directory commands(refer to Directory Structure of dir commands).

Activate Bot

$ yarn main

Refer to package.json, this command will execute node src/main.js. In other words, It'll activate discord bot.

About

discord bot using discord.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published