Coder Social home page Coder Social logo

advaith1 / activities Goto Github PK

View Code? Open in Web Editor NEW
604.0 16.0 136.0 79 KB

Discord slash command bot for opening voice channel activities, using Cloudflare Workers

Home Page: https://get.activities.rocks

License: MIT License

TypeScript 90.59% JavaScript 9.41%
discord discord-slash-commands discord-bot cf-workers cloudflare-workers

activities's Introduction

hello world ๐Ÿ‘‹๐Ÿพ

status playing vscode spotify

Powered by StatusBadges, created by me

activities's People

Contributors

advaith1 avatar joseywoermann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

activities's Issues

Self Hosting?

So, I'm assuming its possible to self host this bot and I got pretty far but then when I try to add the cf worker URL as the interactions URL I get this error
Validation errors:
interactions_endpoint_url: The specified interactions endpoint url could not be verified.
Would it be that there is another part of the domain that I would have to use?
https://workername.username.workers.dev - is what I'm using currently
https://workername.username.workers.dev/some/path - would it have to be something like this?

Watch together audio stops when entering server settings

Steps to reproduce:

  1. Start a Watch together session
  2. Add a video to the queue
  3. go into your server's settings
    -> audio stops playing.

Expected behaviour:
Audio continues playing, regardless of where you are in the Discord App.

YouTube "Watch Together" isn't here

I've seen in other servers that have the activity feature, where you can watch YouTube videos together, I believe it has all games the Bot has, just missing the YouTube feature. It would be awesome if this could be fixed/added, me and my friends, it would be easier to watch stuff with them, or just chill and relax with some music.

Bring back old youtube together

Please bring back old youtube together as the new "watch together" is bugged as if I give someone remote access then my playback is paused and is on loop. And if I solely control the playback then others are 10 - 12 seconds behind.

And also if you could link docs of these activities it would be great.
Thank you.

Fullscreen videos?

Is there a way to make videos fullscreen? This is as biggest as I can go
image

Missing Awkword activity

This bot hasn't implemented the Awkword game yet.
Not sure about the official name or anything, just wanted to notify you

id is: 879863881349087252

Activities bot broken ?

I sat down to watch some youtube today, and noticed that there is a new option called "youtube togethter (new)", i used it and the bot even gave the link for joining the thing, but it wont work. I even tried chess, betrayal.io and other cool stuff in the bot.

However when i try using an alt account, it works but not on my main ?

ReferenceError: crypto is not defined

When trying to start script, I get this:

var PUBLIC_KEY = crypto.subtle.importKey('raw', hex2bin('PUBLIC_KEY'), {
                 ^

ReferenceError: crypto is not defined
    at Object.<anonymous> (/home/pi/Desktop/GitHub/activities/src/verify.js:48:18)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/pi/Desktop/GitHub/activities/src/bot.js:40:16)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

What this and how fix this?

Not an issue but how does the bot work?

Im looking through the code but i saw no mention of choice or any of the choices whatsoever. Is the source code not up-to-date or is it handled on the cloudflare worker? I really want to know how it works. Thanks!

Edit: reading through closed issues, I found out that self-hosting is not possible. Really want to add it to my bot and update the activity choices automatically. While I think it could be a great thing, maybe theres something that made you wanna keep it private but that kinda defeats the purpose of open-source projects. But still its a great bot!

Edit edit: If anyone can tell me how to get the activities ID automatically when new ones are introduced, itd be great

Taking the remote

Is there a way to take the "remote" from another user and lead the YouTube together?

fix(channel): option preview

While using the slash command, the channel argument shows the options of both voice and text however this can be filtered by removing text channels. Also, there can be a channel as an optional argument if a user is already connected to a voice channel where the bot has permission to View Channel and Create Instant Invite.

Channel invites are infinite

Invitations that the bot creates are infinite numbers and doesn't expire. Could you please modify the bot to make the invites to be temporary for a few minutes?
With the current setup of your bot, channel invitations stay permanent unless removed manually. And after quiet sometime i don't want a message to popup saying "Maximum number of invites to this server reached".

How can I get the application id of these games?

Hey!

I know questions like this have existed, but unfortunately, no matter how hard I tried to use the information inside them, nothing came up. I tried to repeat the code exactly as indicated in the examples, but nothing came of it. Maybe you can help me?

In general, I would like to try to recreate the functionality of your bot, but on my server. Is this possible, if so, what is required for this? Thanks in advance!

I used data from this question

Unable to load activity

Trying to load PokerNight, and the bot says "unable to start activity."

Looking in Console logs, it says it can't load the activity from the API, giving a Forbidden 403 error. Checking the rest of the games, none of them work either.

What should i do?

APIChatInputApplicationCommandInteractionDataResolved | APIUserApplicationCommandInteractionDataResolved | APIMessageApplicationCommandInteractionDataResolved'.\n Property 'channels' does not exist on type 'APIUserApplicationCommandInteractionDataResolved'."

Having trouble self hosting.

I successfully set the secrets and published to Cloudflare Workers, invited the bot, waited more than an hour but the slash commands don't show up or work. I'm not sure if it's the worker not taking requests or the bot just not working.

cant watch youtube together with my friends

so i've done /activites (vc channel) watch together and when me and my friends join i cant or my friends view the videos i put
tried on my other new test servers, doesnt work

Sound

I cant hear the video

Loading Stuck

there's an issues while loading, stuck at 50% after that decided to force close the loading screen

add new game

i just found a new game called putt party with the spec below
image
and with the id 910224161476083792
can you add it pleaaaasssseeeeeee? <3

YoutubeTogether Stuck at Loading on Discord Windows Client

Below are the Activities that I tried:
1- Youtube Together: It just simply sits at Youtube Infinite Loading until the activity stops.
2- Betrayal.io: really slow loading until 50% and it stops.
3- Fishington.io: same result as Betrayal.io.
4- Poker Night: basically the only thing that's working fine.
When I go on Discord "In Browser Same Account", All the Activities works great as they should.

So why is Discord Windows client javascript "inflicts maybe?" on the stable discord..
I tried to reinstall discord, re-authorize permissions, didn't work for me, but my friends have it working fine.

Bot seem to be offline

The bot isn't working since a few days, as I said it seems to be offline the circle next to it is blank

Watch together is full of bugs unlike Old Youtube Together

Previously when there was YouTube together (old) and YouTube together (new), I preferred using YouTube together (old), since it showed me who was trampling with the remote and also the sync was working smoothly. The only feature that lacked there was the ability to prevent other from using it. Now after the latest update of your bot, YouTube together (old) has disappeared and only the watch together mode is available. Whereas the new update brought feature to allow or disallow people from controlling with the video, the stream doesn't sync with the members of our channel. Each member of the channel views the video in different timestamps and for the people who doesn't have control over the remote has the video playing again from the start. I have also noticed video automatically getting skipped from the queue. The feature of getting a popup of who is joining the session and who is leaving and also whoever is controlling the remote was a good feature, which is currently not available. I say that the bot is currently obsolete and can't be made accordingly.

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.