remyk888 / discord-together Goto Github PK
View Code? Open in Web Editor NEWPlay games or watch YouTube videos together on Discord ! More than 18 games available !
License: MIT License
Play games or watch YouTube videos together on Discord ! More than 18 games available !
License: MIT License
Sketch Heads doesn't work...
NodeJS V16.13.2
Module V1.3.3
doodle crew works, but tells you to go to sketch heads, and sketch heads just doesn't 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
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 !
Hey!
I looove your project and want to get the link of the docs for the API Endpoint of this function. This is due to I want to research more on this topic and hopefully, contribute to the project!
Hey This is like the best git repo i ever seen!
Thank You!
Ik that you just added it lol, but can you like put it in the bukkit list that you add Netflix so me and my friends can netflix and chill? c: Thank you and btw
This is a dope project, keep it up!!
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
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
if (option && this.applications[option.toLowerCase()]) {
let applicationID = this.applications[option.toLowerCase()];
should be
if (option && this.applications[option.toString().toLowerCase()]) {
let applicationID = this.applications[option.toString().toLowerCase()];
otherwise it throws this error "(node:10996) UnhandledPromiseRejectionWarning: TypeError: option.toLowerCase is not a function"
for reference, this is lines 71 and 72 in the DiscordTogether.js file, and the fix was to make it a string
so is there anyway yet to:
i) enable fullscreen. not the discord's fullscreen but youtube's itself. it says full screen unavailable. May be some sorta user script to bypass it?
ii) i dont think this is available yet but how to give access to only selected person to control and make other able to view only.
ii) Is there a way to keep the yt together going on even though I leave the VC so than i could continue it later. May be adding a bot to the activity so the activity goes on or sth else.
iv) add playlist instead of a video one by one
I know most of these are not directly possible so I am asking for some workaround methods which can help upto some extent.
Thank you.
When I try to make an invite, this happens.
client.on('message', message => {
if (message.content === '*youtube') {
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => {
message.channel.send(`Click the link! https://discord.gg/${invite.code.replace('https://discord.com/invite/', '')}`);
message.channel.send(`${invite.code}`);
});
};
})```
Is it possible to change the time or the number of uses for the invites?
Error: An error occured while starting Youtube together !
at DiscordTogether.createTogetherCode (/home/pi/panais2/node_modules/discord -together/src/DiscordTogether.js:105:15)
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
IDs are from Inspector Tool (Ctrl
+ Shift
+ I
)
activity-popout-{ID}
Please answer the following questions for yourself before submitting an issue.
Please describe the behavior you are expecting
I expect your code example to work.
What is the current behavior?
It wont work
Please provide detailed steps for reproducing the issue.
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
isn't this against discord ToS?
Just making sure lol.
When using the code from the README on the npm page, it presents this error. I have both DiscordJS and discord-together installed
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
ZombsRoyale.io and "Custom application ID" not working, outputing: https://discord.gg/50035, or just 50035 code.
Discord just added three new games:
It would be great if their IDs can be added
Is it possible to block someone from using the youtube GUI? I mean, i want to let him see the videos but not touch the queue, video settings etc.
I have been getting this error for a few days without having touched any of the code. "UnhandledPromiseRejectionWarning: Error: An error occured while starting Youtube together !"
(node:3781) UnhandledPromiseRejectionWarning: Error: An error occured while starting Youtube together ! at DiscordTogether.createTogetherCode (/home/runner/Zanix-Bot/node_modules/discord-together/src/DiscordTogether.js:95:23) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) (Use
node --trace-warnings ...to show where the warning was created) (node:3781) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:3781) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When my bot send invite to yt together send this weird invite
Using latest version from ur package and discord.js
Using node v16
Please answer the following questions for yourself before submitting an issue.
Please describe the behavior you are expecting
Code can successfully be compiled to JavaScript
What is the current behavior?
Console output these information:
Client.ts:52:50 - error TS2345: Argument of type 'this' is not assignable to parameter of type 'Client<boolean>'.
Type 'MyClient' is missing the following properties from type 'Client<boolean>': presence, sweepers
52 public DiscordTogether = new DiscordTogether(this, {
~~~~
I'm sure that my MyClient class is extend from Client class of discord.js
Please provide detailed steps for reproducing the issue.
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Already include above
Please answer the following questions for yourself before submitting an issue.
it should start the activity
dont do anytthing
idk
Please provide detailed steps for reproducing the issue.
when i click the start it wont do anything
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
no logs
My bot can't run the new activities because you haven't published the updates to npm yet.
Merge #49 before publishing please
Hey, how do I make the bot do something when ALL users left it? (If no one is in it)
If this is not possible, are there any alternatives?
Doesn't make an invite URL and leaves an error in the console
heres my code:
const Discord = require('discord.js')
require("discord-reply")
const bot = new Discord.Client();
module.exports = {
name: "youtube",
cooldown: 3,
description: "Check the version of the bot",
aliases: ["yt", "youtube_together", "youtubetogether"],
execute(msg){
const Discord = require('discord.js');
const { colour } = require('../config.json')
const { DiscordTogether } = require('discord-together');
bot.discordTogether = new DiscordTogether(bot);
if(!msg.member.voice.channel) return msg.lineReply("You need to be in a `Voice Channel` for this command")
if(msg.member.voice.channel) {
bot.discordTogether.createTogetherCode(msg.member.voice.channelID, 'poker').then(async invite => {
const ytEmbed = new Discord.MessageEmbed()
.setColor(colour)
.setTitle('__Youtube__')
.setDescription(`${invite.code}`)
.setTimestamp()
return msg.lineReply(`${ytEmbed}`);
})
} else {
msg.lineReply("Sorry I could not start that activity")
}
}
}
How can we use it with discord.js v13. It is not workingπ₯΄
Please support
Error: An error occured while starting Youtube together !
at DiscordTogether.createTogetherCode (/home/runner/sssAFASssX4UV4ssssSFASFAssss/node_modules/discord-together/src/DiscordTogether.js:98:31)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
NOTE : old version is running with me
Any plans on participating in this?
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.
I don't know whether to classify this as unexpected behavior or as a error in the documentation, or even if you were already aware of this behavior.
I think it is unnecessary to initialize the constructor with the discord js client, when discord-together only needs the bot token for the post request.
The way I do it:
const { DiscordTogether } = require('discord-together');
const discordTogether = new DiscordTogether({ token: process.env.DISCORD_TOKEN });
Using command handling or event handling is simpler for me to create it this way, so I avoid having discord code together outside of the command I use it in.
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 (Use
node --trace-deprecation ...to show where the warning was created)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.