bitfocus / companion-module-discord-api Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Reconnecting logic needs to be fixed, as currently the module works fine if the instance starts and Discord is already running, but if Discord starts up after the Companion instance, or is closed and reopened, this can result in duplicate connections and a memory leak. As such reconnecting has been temporarily disabled until a clean solution can be made
Describe the feature
Adding a Variable which reflects the Voicechannel the Client is currently connected to. Also splitting the joining and leaving of Voicechannel into two different actions, and making the leave channel action either accepting variables, or having a selection for "current channel".
Usecases
Having a button to leave the current Voicechannel without having to set it up by hand.
Describe the bug
Just trying to install and configure here but I can't find any reference to how to do that. I've got an App setup in Discord for this ready to go with keys but where do I configure the module? Right now I'm getting a "Connection config unavailable" message with a retry set to 1sec just looping away.
To Reproduce
Add the module. No configuration available. goes straight into the "Connection config unavailable" loop.
Expected behaviour
Provide an interface to add the Discord application keys?
System (please complete the following information):
Additional context
Need some more into the Readme.md. I'm happy to write some word for people if you can point me at what that should be.
Currently to use this module requires the user create an app in the Discord Developer Console, as only verified apps or apps created by the user can connect to that users own Discord client.
We've been waiting on Discords Developer team to respond to a ticket to verify the Companion app since Feb 2022, when they eventually get around to that we'll be able to use a single app for all Companion users (much like the Discord addon for Elgato's StreamDeck software just uses a single app).
Describe the bug
After the configuration of the instance and connection to Discord with the login prompt, the instance displays Connection Failure
To Reproduce
Steps to reproduce the behaviour:
I made a new app on Discord Dev Portal to get new credentials as the console says "Login err" but it is not the solution
System (please complete the following information):
Console log
system: ** Starting Connection from "C:\Program Files\Companion\resources\bundled-modules\discord-api\main.js" **
system: ** Connection started **
Starting up module class: c
Sentry disabled
Module-host accepted registration
debug: Initializing Discord client
warn: Login err: {}
error: [object Object]`
Describe the bug
It gives an error on connecting
To Reproduce
Steps to reproduce the behaviour:
Install the plugin on the lastest beta
Fill in the client id and secret
That's all.
Expected behaviour
It would connect
Screenshots
Logging information, in text, as screenshot is more work
system: ** Starting Connection from "/home/name/path/companion-linux-x64-3.1.0+6087-beta-5a13ecf5/companion-x64/resources/bundled-modules/discord-api/main.js" **
system: ** Connection started **
Starting up module class: d
Sentry disabled
debug: Initializing Discord client
Module-host accepted registration
test Error: Could not connect
at Socket.r (/home/name/path/companion-linux-x64-3.1.0+6087-beta-5a13ecf5/companion-x64/resources/bundled-modules/discord-api/main.js:2:200510)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
warn: Login err: {}
System (please complete the following information):
I would like to program companion to select a button to switch OBS scenes whenever a specified user chats in the discord.
So for example how I'd use this variable -
Dave is speaking for over 1 seconds, companion then triggers OBS to switch to Dave Talking scene
Wesley starts speaking in response to Dave for over 1 second, companion triggers OBS to switch to Wesley talking scene.
etc..
You could also use this variable to create cool custom animations within obs for whatever. I wish we had this already!
Describe the feature
Building upon the connected users variables in the discord integration, add a way to be able to toggle between all the connected users at the click of a button.
Usecases
-- Have volume buttons above and below the suggested button, and use the middle button to be able to change the user.
Describe the feature
It would be nice to retry to reconnect.
Usecases
The StreamDeck starts faster than Discord app, so it fails to connect to it. Every time I reboot/start the PC I need to go to connections disable -> enable the module to be able to connect it to Discord app.
Describe the bug
Adding Client ID and Client secret (followed the tutorial from the module info)
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Should authenticate
System (please complete the following information):
Additional context
I even added the actual RPi IP to redirects (not sure is needed)
Describe the feature
I would like to be able to toggle streamer mode on and off. This should also include a feedback with the status of discords streamer mode
Usecases
Sometimes I would like to mute all notifications without deafening myself. Also I do stream so I need to pop into discord and toggle the setting each time.
Describe the bug
Trying to add the connection fails.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The module would get added successfully
System (please complete the following information):
2.3.0+4465-beta-01d4bab8
Linux 5.18.2-arch1-1 #1 SMP PREEMPT_DYNAMIC
Additional Information:
Error:
module(discord-api): Error loading module: Error: Cannot find module './png64' Require stack:
- /opt/companion/resources/app.asar/node_modules/companion-module-discord-api/dist/feedback.js
- /opt/companion/resources/app.asar/node_modules/companion-module-discord-api/dist/index.js
- /opt/companion/resources/app.asar/lib/instance.js
- /opt/companion/resources/app.asar/app.js
- /opt/companion/resources/app.asar/electron.js -
Describe the feature
A user should be able to bind a soundboard sound to a bitfocus button and play it
Usecases
Annoy your friends while having the ability to play multiple soundboard items at the same time, i have 10 fingers, my streamdeck has 15 buttons, should be fun.
It's currently a known issue that if you connect to a voice channel, and then change directly to another channel, the feedback will still show the original channel joined.
This is known and being worked on.
Describe the bug
Decreasing selected user volume below 100% isn't possible when the volume is already above 100% and the step size is smaller than 10.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The volume of the other user should continue to decrease as it does when the step size is equal or bigger than 10.
System (please complete the following information):
Describe the bug
When adding the discord module and entering the Client ID/Secret the status stays on "conencting"
upon adding the module i do get the discord prompt to allow access to bifcous but approving this doesnt change the connecting state and bitfocus does not appear in the list of authorised apps.
Have included the logs below
System (please complete the following information):
Win 11 - 21H2
Companion 2.4.1
Describe the feature
Once in a Voice Channel, start Video
(and possibly to choose video source also?)
Usecases
I would like to be able to control a camera feed on a remote computer. Once I join the voice channel, I'd like to be able to have the camera go on with a separate button press.
Describe the bug
I can't activate connection. Discord instance is running on machine, I created new application and pasted Client ID and Client Secret in configuration. I added "http://localhost" to the discord application settings.
To Reproduce
Expected behaviour
Connection will connect to discord and start working
System (please complete the following information):
Additional context
...
Hey. I downloaded the source code for 1.1.3 because companion only shows me 1.1.2.
How / where do i install 1.1.3 ?
--- Got it. I installed the experimental version. I have to use the Beta-Companion in order for this to work. ---
Describe the bug
It looks like the png64 folder is not being handled by typescript properly, resulting in the module being unimportable.
To Reproduce
julus@julus-thinkpad:~/Projects/companion-22$ node
Welcome to Node.js v14.19.2.
Type ".help" for more information.
> require('companion-module-discord-api')
Uncaught Error: Cannot find module './png64'
Require stack:
- /home/julus/Projects/companion-22/node_modules/companion-module-discord-api/dist/feedback.js
- /home/julus/Projects/companion-22/node_modules/companion-module-discord-api/dist/index.js
- <repl>
The same is also happening on my ubuntu-server installation of companion.
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the feature
Add the option to start and stop streaming of your current game in discord. Add the current status as a feedback option to change the button status.
Usecases
The main use case is not having to close the game to start streaming to your friends. Very handy if you are playing racing games and your keyboard is a but further away.
When adding the Discord module, it keeps crashing on Companion v3.0.
The module cannot display any config info, as its initialization seems to fail.
Here is the log :
error: Failed to init: Error: Call timed out Error: Call timed out at t.IpcWrapper.sendWithCb (C:\Program Files\Companion\resources\main.js:2:2362159) at Object.init (C:\Program Files\Companion\resources\main.js:2:8087748) at l.<anonymous> (C:\Program Files\Companion\resources\main.js:2:8096617) at l.emit (node:events:513:28) at l.emit (node:domain:489:12) at ChildProcess.<anonymous> (C:\Program Files\Companion\resources\main.js:2:2349720) at ChildProcess.emit (node:events:513:28) at ChildProcess.emit (node:domain:489:12) at emit (node:internal/child_process:937:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Describe the feature
The current implementation has a Join Channel. Please add a Join Direct Message for both Text and Voice.
Usecases
I use a DM group to chat with friends and associates on occasion... would be great to be able to automate the Join process.
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.