- Add the bot from Discord development, and get the discord clientId, PERMISSIONS_INTEGER, discord bot token.
- Use
https://discordapp.com/oauth2/authorize?client_id=<Bot_Client_ID>&scope=bot&permissions=<PERMISSIONS_INTEGER>
to add bot to server.
- Add .env file on root folder, and write down your DISCORD_TOKEN in it. Ex.
DISCORD_TOKEN=YOUR_DISCORD_TOKEN
. - Run
npm install
install packages which project needs. - Start dev server:
npm run start:dev
. It can auto restart server after save file.
- Clone the project and set discord-bot/ to the root directory.
- Run
docker build -t <Image-Name> .
to build the image with set name. - Edit docker-compose.yml image to name which you set, DISCORD_TOKEN to your discord token.
- Run
docker-compose up -d
to run the container in the background. Your can start using your bot.
- Luck
- Check daily luck
- Command: !luck, !運勢
- Play Audio
- Play youtube song
- Command: !play, !pause, !skip, !stop, !volume
- Reddit
- Get the hot or top 5 articles
- Command: !reddit, !reddit [args], !reddit top, !reddit hot, !reddit list
- Easy build with docker