hsh-survive-discord-1
v2.0.1
Published
Play games or watch YouTube videos together on Discord !
Downloads
6
Maintainers
Readme
🔩 Installation
Install discord-together
$ npm install discord-together@latest
Install discord.js
$ npm install discord.js@latest
🔑 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}`);
});
Or
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'chessDev').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
Note: you have to click on the BLUE LINK, not the 'Play' button, in order to start the activity !
🌌 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