singulart ebbd4a9044 Imrove th structure of contributions folder | 3 年之前 | |
---|---|---|
.. | ||
src | 3 年之前 | |
.gitignore | 3 年之前 | |
README.md | 3 年之前 | |
config.ts | 3 年之前 | |
licenses.json | 3 年之前 | |
package.json | 3 年之前 | |
query_params.json | 3 年之前 | |
request.json | 3 年之前 | |
tsconfig.json | 3 年之前 | |
videos_query.graphql | 3 年之前 | |
yarn.lock | 3 年之前 |
This Discord bot announces new video uploads.
git clone https://github.com/Joystream/community-repo
cd community-repo/community-contributions/joystreamvideobot
yarn && yarn run build
You should use the channnel id instead of it's name. How to get the channel id of a channel: 1- Open up your Discord Settings 2- Go to Appearance 3- Tick Developer Mode (And close the Discord settings) 4- Right click on your desired channel 5- Now there's an option Copy ID to copy the channel id
Open config.ts
and set channelId
.
Run yarn && yarn run build
to apply your changes.
Follow the procedure
TOKEN=<YOUR DISCORD TOOKEN HERE> node lib/src/bot.js