Play games or watch YouTube videos together on Discord !

Overview

Discord Together

NPM

forthebadge

🔩 Installation

Install discord-together

$ npm install discord-together@latest

Install discord.js

$ npm install discord.js

🔑 Features

  • Easy to use
  • Multiple server
  • Discord support
  • Lightweight

Documentation ➩ coming soon !


💻 Code example

This is a simple example of code using this package.

const Discord = require('discord.js');
const client = new Discord.Client();
const { DiscordTogether } = require('discord-together');

client.discordTogether = new DiscordTogether(client);

client.on('message', async message => {
    if (message.content === 'start') {
        if(message.member.voice.channel) {
            client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => {
                return message.channel.send(`${invite.code}`);
            });
        };
    };
});

client.login('your Discord bot token');

🔧 Options

  • Youtube
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Poker
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Chess
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'chess').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Betrayal
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'betrayal').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Fishing
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'fishing').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Custom application ID
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'application ID').then(async invite => {
    return message.channel.send(`${invite.code}`);
});

📷 Image

Invite link

Note: you have to click on the BLUE LINK, not the 'Play' button, in order to start the activity !


YouTube Together


🌌 Example of bots made with Discord Together

🚀 Others

This package is under MIT license.

Note: This package is not affiliated with Discord or YouTube.

If you have any problems, you can contact: RemyK#3876. Discord server: Server Link

Github repository


Made with by RemyK

Comments
  • DeprecationWarning messageCreate

    DeprecationWarning messageCreate

    After I start the bot and I send a text message in any channel. I get this error.

    (node:9360) DeprecationWarning: The message event is deprecated. Use messageCreate instead (Usenode --trace-deprecation ...to show where the warning was created)

    opened by Ryckie 11
  • Invalid invite url

    Invalid invite url

    const { MessageEmbed } = require("discord.js");
    
    module.exports = {
      name: "chess",
      description: "Make a Chess voice channel.",
      async execute(bot, message) {
        const voice = message.member?.voice;
    
        if (!voice?.channel)
          return message.channel.send( "❌ You have to join a voice channel first.");
    
        if (!voice?.channel.viewable)
          return message.channel.send("❌ I need **\`VIEW_CHANNEL\`** permission.");
    
        const invite = await bot.discordTogether.createTogetherCode(voice.channelID, "chess").catch(console.error);
    
        const embed = new MessageEmbed()
          .setDescription(`[Click here the invite link to join it.](${invite.code})`)
    
        return message.channel.send(embed);
      },
    };
    

    This code was working fine some days ago. But now I'm getting this link https://discord.com/invite/50013 I tried with many voice channel , and with all the activities . I'm getting only this link

    bug 
    opened by L0SER8228 8
  • Support for custom options

    Support for custom options

    • Support for custom apps. (Readme said customs applications IDs were supported, but actually they weren't.)
    • Tried improving readability and reducing some code.
    • Catch error now displays current application instead of just Youtube.
    • Error number sometimes is also returned by Discord inside ".code" property, added an extra created_at check just to be sure the code we are getting back is valid and it's not part of an error response. Also, prior condition was checking for ".error" property but seems like Discord returns errors inside ".errors".
    opened by dinosaurioh 5
  • youtube dont work?

    youtube dont work?

    if (message.content.toLowerCase() === 'playYT') { if(message.member.voice.channel) { client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtubeDev').then(async invite => { return message.channel.send(${invite.code}); }); }; };

    when sending playYT command the bot dont reply and there is no error and other games work fine i also tried normal youtube and also didnt work

    opened by Salem-2 4
  • Code example not working

    Code example not working

    Prerequisites

    Please answer the following questions for yourself before submitting an issue.

    • [ ] I am running the latest version Not applicable
    • [ ] I checked the documentation and found no answer Not applicable
    • [ ] I checked to make sure that this issue has not already been filed Not aplicable
    • [x] I'm reporting the issue to the correct repository (for multi-repository projects)

    Expected behavior

    Please describe the behavior you are expecting I expect your code example to work.

    Current behavior

    What is the current behavior? It wont work

    Steps to Reproduce

    Please provide detailed steps for reproducing the issue.

    1. Create Discord bot, in main file copy and paste in main file the example
    2. Install all dependancies
    3. Run main file

    Context

    In Discord.JS 13, messageCreate replaces message event, so I assume your example is for Discord.JS 13. You need to declare Client intents, else, it wont work

    opened by GeekCornerGH 4
  • New Activity: Checkers in the Park

    New Activity: Checkers in the Park

    About an hour ago, Discord put out a new "Checkers in the Park" activity similar to the existing "Chess in the Park." I believe I have retrieved the activity's ID, so it can now be added to this package.

    Activity ID: 832013003968348200

    question 
    opened by Cannicide 4
  • Application ID?

    Application ID?

    Is the youtube and youtube dev old Youtube Together or new one branded as "Watch Together"? If you could, can you provide it both if missing? Ty for it.

    opened by DeathGOD7 4
  • Please fix the Sketchheads activity.

    Please fix the Sketchheads activity.

    My bot can't recognize the Sketchheads activity since its the only one that doesn't work. and also, Discord just shut down Doodle Crew. Code Sample:

    client.on('messageCreate', async message => {
      if (message.content === '+gametest') {
          if(message.member.voice.channel) {
       client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'sketchheads').then(async invite => {
        return message.channel.send(`${invite.code}`);
    });
    
    Terminal Error:
    
          throw new SyntaxError('Invalid option !');
                ^
    
    SyntaxError: Invalid option !
    
    opened by BlueStacks1884 3
  • New Activities

    New Activities

    879864070101172255 sketchyartist 832012854282158180 putts 763133495793942528 pokerdev 878067427668275241 doodlecrewdev 879864010126786570 wordsnackdev 879864104980979792 sketchyartistdev 891001866073296967 decodersdev 832012586023256104 CG 2 Dev 832012682520428625 CG 3 Dev 832013108234289153 CG 4 Dev

    image

    IDs are from Inspector Tool (Ctrl + Shift + I) activity-popout-{ID} image

    opened by kamiya10 3
  • Added spellcast activity

    Added spellcast activity

    Description

    Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

    Fixes # (issue)

    Type of change

    Please delete options that are not relevant.

    • [ ] Bug fix (non-breaking change which fixes an issue)
    • [x] New feature (non-breaking change which adds functionality)
    • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • [ ] This change requires a documentation update

    How Has This Been Tested?

    Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

    • [x] Test A
    • [x] Test B

    Test Configuration:

    • Operating system: Linux
    • Gdd.Js version:
    • Node version: 17.x
    • NPM version: 8.x

    Checklist:

    • [x] My code follows the style guidelines of this project
    • [x] I have performed a self-review of my own code
    • [x] I have commented my code, particularly in hard-to-understand areas
    • [x] I have made corresponding changes to the documentation
    • [x] My changes generate no new warnings
    • [x] I have added tests that prove my fix is effective or that my feature works
    • [x] New and existing unit tests pass locally with my changes
    • [ ] Any dependent changes have been merged and published in downstream modules
    opened by L0SER8228 3
  • 3 games do not work

    3 games do not work

          {
            label: "Awkword",
            description: "Creates a Awkword activity invite",
            value: "awkword",
            emoji: "🎨",
          },
          {
            label: "Puttparty",
            description: "Creates a Puttparty activity invite",
            value: "puttparty",
            emoji: "🎨",
          },
          {
            label: "Sketch Heads",
            description: "Creates a Sketch Heads activity invite",
            value: "sketchheads",
            emoji: "🎨",
          },
    

    version 1.3.25

    opened by LucasB25 2
  • Breaking changes to the wrapper

    Breaking changes to the wrapper

    Description

    Code Changes

    Other:

    • Typescript declarations
    • Ocho renamed to "Blazing 8s"

    Added Activity:

    • Bash Out

    Removed Activities:

    • Awkword
    • Sketchy Artist
    • Doodle Crew

    Documentation Changes

    Added:

    • "Discord Activities" Bot using this package
    • "Bash Out" for available games with code example

    Removed:

    • Awkword
    • Sketchy Artist
    • Doodle Crew

    Type of change

    • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

    How Has This Been Tested?

    I've tested by running node test/test-djsv14.js

    • [x] Test A image

    Test Configuration:

    • Operating system: Windows 10 pro
    • DJS version: v14
    • Node version: v16.15.1
    • NPM version: 8.11.0

    Checklist:

    • [x] My code follows the style guidelines of this project
    • [x] I have performed a self-review of my own code
    • [x] I have commented my code, particularly in hard-to-understand areas
    • [x] I have made corresponding changes to the documentation
    • [x] My changes generate no new warnings
    • [x] I have added tests that prove my fix is effective or that my feature works
    • [x] New and existing unit tests pass locally with my changes
    • [x] Any dependent changes have been merged and published in downstream modules
    opened by kyrea 0
Releases(v1.3.31)
Owner
RemyK
I like to do things that I enjoy, only if they are good.
RemyK
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
Discord bot made in javascript to play youtube music.

DJS O DJS é um bot para Discord com a capacidade da criar playlists personalizadas, tendo como fonte a biblioteca de músicas do Youtube. Frameworks e

Matheus Luiz 2 Aug 21, 2022
Lightweight customizable placeholders for third party content of your website (e.g. Youtube Videos) compatible with the Usercentrics CMP.

Usercentrics Widgets Lightweight customizable placeholders for third party content of your website (e.g. Youtube Videos) compatible with the Usercentr

Netresearch 3 Nov 17, 2022
Recap let's you recap on your favourite social network videos by downloading them on your devices, from the range of YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL.

Recap A Social Network Video Downloader Recap let's you recap on your favourite social network videos by downloading them on your devices, from the ra

John Oladele 4 Sep 24, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Let's put an end to Discord scammers together!

Disguard DISCLAIMER: Disguard is currently in it's early stages of development, and not all features may work as expected. If you encounter any proble

Reuben Tier 9 Jun 17, 2022
Umut Bayraktar YouTube Özel Discord.js v13 Uyumlu Başvuru Botu Altyapısı, Glitch ve PC Uyumludur!

Discord.js v13 Başvuru Botu Umut Bayraktar Youtube Özel Discord.js v13 Başvuru Botu Altyapısı. Glitch.com'da Kullanacak İseniz .env İsimli Dosyaya Bot

Umut Bayraktar 6 May 31, 2022
Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı.

Discord.js v13 Müzik Botu Umut Bayraktar Youtube Özel Discord.js v13 Müzik Botu Altyapısı. .env İsimli Dosyaya Bot Tokeninizi Yazın ve Kullanın. Umut

Umut Bayraktar 8 May 31, 2022
Create videos using React!

Reactive Videos are videos created using HTML and React components. This allows you to leverage the almost limitless possibilities of the web browser

Mikael Finstad 76 Dec 25, 2022
A tool to download all videos and convert to mp3 inside a video set of bilibili.

bilibili-video2mp3 A tool to download all videos and convert to mp3 inside a video set of bilibili (also works for single video, of course). You will

wxsm 23 Dec 15, 2022
Um simples bot para o Telegram que baixa vídeos e áudios do TikTok & outras funcionalidades

Kelle Estella (Telegram) Um simples bot para o Telegram que baixa vídeos e áudios do TikTok & outras funcionalidades. Clique aqui para utilizá-lo. Com

Luis Gabriel Araújo 3 Apr 20, 2022
A program that makes scripting videos easier.

A program that makes scripting videos easier. Scripts can be written using only the keyboard.

Samuel Albert 18 Jun 22, 2022
Scraper for TikTok. Download videos, music, fetch users info and more.

tiktok-scraper A fast light-weight scraper for tiktok to fetch and download video posts, video music, user info and more. Installation npm i tiktok-sc

null 41 Jan 1, 2023
Compress program that uses H264,VP9 and Vorbis algorithms with ffmpeg to compress anime videos and audios

Vaniply Compress tool to compress videos and audios using H264,VP9 and Vorbis algorithms Installation and running Just clone the repository and open a

null 18 Oct 15, 2022
Bookwise is a video library web app that consists of a collection of Videos

Bookwise is a video library web app that consists of a collection of Videos. It has features such as like videos, creating playlists, adding videos to playlists, adding to watch later, history, feed, etc. but of a specific niche.

Rutvik Umak 18 Jun 13, 2022
Compress program that uses H264,VP9 and Vorbis algorithms with ffmpeg to compress anime videos and audios

Vaniply Compress tool to compress videos and audios using H264,VP9 and Vorbis algorithms Installation and running Just clone the repository and open a

OpenAnime 20 May 30, 2022
A lightweight web component helper for HTML5 videos.

Video Radio Star A lightweight web component helper for HTML5 videos. Intended for use with muted by default HTML5 videos. Demo Demo out of viewport u

Zach Leatherman 58 Dec 12, 2022
A JavaScript library for optimizing html pages with video content that prevents videos from loading on mobile devices.

?? js-vido — JavaScript Video Download Optimizer A JavaScript library for optimizing html pages with video content that prevents videos from loading o

Ariel Montes 1 Feb 9, 2021
Play your favorite playlist with rexom

rexom ?? Play your favorite playlist with rexom ?? ?? Requirements. Make Your own discord bot from here make sure you have Git, VS Code, nodejs in yur

DevelopersSupportAR 35 Dec 25, 2022