- Watch Together (with YouTube Activity)
Node.js version ≥16.9.0 is required
chalk@4.1.2 | node-fetch@2.6.7 |
discord.js@14.6.0 | nodemon@2.0.20 |
dotenv@16.0.3 |
- Clone this repository to your local drive
git clone https://github.com/yewshanooi/watch-together.git
cd watch-together
- Install the required npm packages
npm install
- Create a new .env file and fill it with your own secret keys
TOKEN=
CLIENT_ID=
- Run the deploy.js file to deploy application commands
node deploy.js
- Run the index.js file to start the bot
💡 Don't forget to run deploy.js file before index.js file, otherwise commands won't appear as they are not updated
node index.js
-or-
nodemon
-
Visit Discord Developer Portal to create a new application
-
Add a Bot user to your application
-
Enable
PUBLIC BOT
authorization flow option for the application (OPTIONAL) -
Enable
PRESENCE INTENT
andSERVER MEMBERS INTENT
privileged gateway intent option for the application (REQUIRED) -
Replace this OAuth2 URL template with your Client ID and paste it in your browser to invite the application to your server
https://discord.com/api/oauth2/authorize?client_id={CLIENT_ID}&permissions=274878000129&scope=bot%20applications.commands
This application is licensed under the MIT License
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
THE USE OR OTHER DEALINGS IN THE SOFTWARE.