joshelboy / pkck_bot

Discord bot, currently just with Watch2Gether Link creation and MindFactory tracking
0 stars 0 forks source link

Discord Bot to test my coding skills

Disclaimer: This is early phase software and could have major quality issues.

This is a Discord Bot using discord.js to create Watch2Gether Rooms and notifiys users when a desired product is listed for sale (only MindFactory atm).

Example images

image

Whats new in the latest comit

image image image


Needed modules

Install all modules via

npm i

I might have missed a package. Remember: This is early phase software.

Note: node-postgres install command ist npm install pg

Changes to the config you need to do

If u want to use this project, make sure to get the following 4 things and enter them into the config.json, w2g.json and _dbconfig.json.

w2g.json

apiKey -> https://community.w2g.tv/t/watch2gether-api-documentation/133767

config.json

token -> Get it from the Discord Dev page clientId -> Get it from the Discord Dev page guildId -> enable developer mode in Discord via settings, rightclick the server and click "copy Id"

db_config.json

Enter ur credentials in the specific fields. Every field is necessary!

Note

You could also change the code to "global slash commands"

Create new commands

To create new commands u just need to create a new Module in "Commands". The eventhandler is automaticly calling it, when ist command is getting used. Same for buttons. Look out for labeling misstakes. Run "deploy-commands" after u created new commands. Global commands may take up to 1h to register.

Other things i suggest for you to do