1.3.2 • Published 4 years ago
discord-game-activity v1.3.2
🔩 Installation
Install discord-game-activity
$ npm install discord-game-activity@latest
Install discord.js
$ npm install discord.js@latest
Note: supports all versions of Discord.js
🔑 Features
- Easy to use
- It's Discord-Together but updated everyday
- Multiple server
- Discord support
- Lightweight
- 9+ games available + 2+ dev games available
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-game-activity');
client.discordTogether = new DiscordTogether(client);
client.on('messageCreate', async message => { // 'message' for Discord.js v12
if (message.content === 'start') {
if(message.member.voice.channel) {
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'spellcast').then(async invite => {
return message.channel.send(`${invite.code}`);
});
};
};
});
client.login('Token Bot');
🔧 Options
- Youtube-Together
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtube').then(async invite => {
return message.channel.send(`${invite.code}`);
});
You can also choose the development version of YouTube, use: youtubeDev
.
- Poker Night
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'poker').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- Chess In The Park
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.io
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'betrayal').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- Fishington.io
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'fishing').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- Letter Tile
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'lettertile').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- Words Snack
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'wordsnack').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- Doodle Crew
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'doodlecrew').then(async invite => {
return message.channel.send(`${invite.code}`);
});
- SpellCast
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'spellcast').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 !
🚀 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 Inc. or YouTube Inc.
If you have any problems, you can contact: RemyK#3876 or Swipley#0001
.
Discord server: Server Link <-- RemyK server
Github repository | Discord-Together