Skip to content

Bluskyo/Watch2GetherBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watch2GetherBot

A Discord Bot for creating Watch2Gether rooms automatically, and adding videos to the the room through discord chat.

Supported Commands:

!w2 <optional Youtube link> Creates a room.
!q <link> or 🚀 reaction Adds a video to room.
!w2 c Shows the main room.
!w2 ls Shows a list of all available rooms.
!w2 set Changes the main room to the specified room.

Demo

Getting Started

API Keys and tokens

  1. Create a .env file that looks like this:
    DISCORD_TOKEN={your Discord token}
    W2G_API={your Watch2gether API key}
    YT_API={your Youtube API key (optional)}
    
    and place it in the same directory as the dotfiles.
  2. Go to https://discord.com/developers/applications to create a discord bot. This bot will need these permissions:
    1. Send message
    2. Read Message History
    3. Add Reactions
  3. Go to https://w2g.tv/en/account/edit_user/ to get the Watch2Gether API key. (Requires an account).

Optional (Needed for fetching thumbnail images in the w2g queue):
Go to https://console.cloud.google.com/apis and make a "YouTube Data API v3" API key.

Docker Container

  1. Run docker build -t w2bot:latest . to create the image for the bot.
  2. Then run docker run -d --name w2bot_container w2bot:latest to make and run the container.

The bot should now be running. To test it send "!w2" in a open text channel.

About

Discord Bot for automatically creating Watch2Gether rooms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published