Coder Social home page Coder Social logo

discord-together's Introduction

Discord Together

NPM

forthebadge

DL

๐Ÿ”ฉ Installation

$ npm install discord-together@latest

Install discord.js

$ npm install discord.js@latest

Note: supports all versions of 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.channel.id, 'poker').then(async invite => {
                return message.channel.send(`${invite.code}`);
            });
        };
    };
});

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

๐Ÿ”ง Options

  • Youtube
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtube').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Poker
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'poker').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Chess
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'chess').then(async invite => {
    return message.channel.send(`${invite.code}`);
});

You can also choose the development version of chess, use: chessDev.

  • Betrayal
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'betrayal').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Fishing
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'fishing').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Custom application ID
client.discordTogether.createTogetherCode(message.member.voice.channel.id, '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

Thanks a lot to 3chospirits who made the typescript declaration file !

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

discord-together's People

Contributors

remyk888 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.