spdermn02 / touchportal_discord_plugin Goto Github PK
View Code? Open in Web Editor NEWTouch Portal Plugin to Interact with Discord
License: GNU General Public License v3.0
Touch Portal Plugin to Interact with Discord
License: GNU General Public License v3.0
Research what happens during windows hibernation restart that could cause tpdiscord.exe to not properly connect back to discord once everything comes back up.
Possibly discord doesn't reopen the same pipe (maybe at all) upon hibernation restore?
maybe tpdiscord.exe (plugin executable) doesn't know how to connect back through because it was interrupted in the flow of hibernation.
As a user i would like to be able to view the number of people connected to a voice channel
and/or who exactly is in that VC without having to join it.
I'm on desktop version 3.1 build 4 of the TP app. I downloaded the discord windows plugin tpp file and I've selected it in adding new plugin... The "IMPORTING PLUGIN..." window pops up and at the bottom it says "Analyzing the TPDiscord-Win.tpp.." this goes on forever and never stops. I've just installed the GoXLR plugin so I know I can install a plugin.
Hi,
I would like to request a feature for events such as mic muted/mic unmuted, deafened/undeafened
It would be awesome to be able to create a two way button so that it can be used for muting and unmuting / deafening/undeafening
Currently I have this set up with IF's but it does not work if I do it inside of discord.
Many thanks,
Andy
Can we get a Streamer Mode Toggle action, just like for Mute and Deafen?
Event and state for process watcher.
That way can tell if discord is running or not in a advance button
Sometimes I will have to stop and then start the plugin to get any of my actions working again.
Perhaps adding some kind of intermittent check that TouchPortal is connected to Discord would solve this (every hour maybe)? Or even check the connection when an action is requested.
I'm not able to reliably reproduce the issue. It just happens sporadically.
I have followed all of the instructions to install/set up the plugin for use; however, after step 22, Discord does not have a pop up that asks me to authorize the application. I did open up the tpdiscord.exe application that can be found in the touchportal appdata folder, and when the cmd prompt pops up, it says there is a login error, and the error is that it could not connect. I have deleted the application in the Discord Developer portal, and recreated it, but that still does not work. Any ideas on next steps that I could take to figure out what is wrong, so I can get this fixed?
As a Discord User I would like to control the volume of other discord users while using Touch Portal.
This should allow for dynamic number of users (this can be done but is tricky) so that There is a generic page that could be setup to control voice volume for users.
the auth popup does not appear in discord. if you need pics feel free to ask
Currently an unknown bug causing the Go To Channel action to kill the plugin, or drop communication - something
I haven't had time to work on it, but it's on my immediate list when i can.
Hi, i have the problem, that the plugin is using the first/random channel id for which the name matches.
We have 4 Voice channels named the same, so i can't select which one i want to join.
Maybe add a feature to join by ID and not Name (I think you already use the id just search for it by name?)
For some context, I had been having trouble with my computer(unrelated to discord or touchportal) so I decided to format and reinstall windows. Prior to this I made a backup of the touch portal settings, including pages and buttons. Part of the Touch Portal buttons contained one button to toggle Deafen and a second button to change from voice activity to push to talk.
After reinstalling, i could not get the discord plug in working, so I deleted it and reimported as well as repaeted after downloading the newest version of "TPDiscord-Win.tpp".(to be honest, it's not really clear WHY the installers folder has multiple windows files) It seemed inconsistent and off and on would not work even after authorization, however at least right this second the deafen button is working. However, the button for "Discord: Set Voice Type to" no longer seems to do anything.
To test, I added a NEW button "Discord: Select Channel" and this new button works perfectly fine, so I am at a loss. Of course, since both the new select channel button works as well as the toggle deafen, the plug it is running and working, so any help would be greatly appreciated. Note that this is on Windows 10 in case that is important.
Add voice channel member counter
will include the user as one of the members. No need to prevent that if > 1 that means another person joined you.
on Reboot of computer, or if Discord crashes and is brought back up the discord-rpc library doesn't handle that well. Need to determine how to attempt multiple connection attempts.
Is there anyway to implement Set status. Like Online, Busy, Idle, and Custom? Would be pretty handy to set your status at the push of a button.
On the latest release (4.0.5) the mac version crashes on startup while version 4.0.4 works perfectly fine.
Running macOS Monterey 12.1 if that helps.
The error log of the 4.0.5 version:
00:02:53.558 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 2:
00:02:53.558 - [ERROR] (Plugin Instance) : command not found
00:02:53.559 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 4:
00:02:53.559 - [ERROR] (Plugin Instance) : command not found
00:02:53.560 - [ERROR] (Plugin Instance) chmod: tpdiscord\r: No such file or directory
00:02:53.561 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 6:
00:02:53.561 - [ERROR] (Plugin Instance) : command not found
00:02:53.617 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 8:
00:02:53.618 - [ERROR] (Plugin Instance) : command not found
00:02:53.618 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 9: syntax error in conditional expression
00:02:53.619 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 9: syntax error near `]]
00:02:53.619 - [ERROR] (Plugin Instance) '
00:02:53.619 - [ERROR] (Plugin Instance) /Users/dalukas/Documents/TouchPortal/plugins/TPDiscord/start_tpdiscord.sh: line 9: `if [[ "x$pid" != "x" && $pid -gt 0 ]]
00:02:53.619 - [ERROR] (Plugin Instance) '
my plugin is not opening any form of windows with discord and chrome open in the background
any ideas on fixing it?
G'day,
I am trying to setup the Discord plugin but during the onboarding process I have run into a issue.
I am able to get the discord portion setup without issues, however, when I click "store" it throws a "ERR_CONNECTION_REFUSED" in Chrome. When I try to navigate back to localhost:9403 it tells me the same thing. Not sure what is happening here but the status hasn't changed any in the plugin section.
Any ideas?
Hi! Discord now has a new integreted soundboard. Can we get a option to add a button for it in the Touch Portal app? (Sorry for my english, thanks a lot in advance)
From Bazard on The Touch Portal Discord #discord channnel:
Hi there, I noticed a bug while using the plugin : I set up several buttons to join specific voice channels on my server, to be able to switch easily between those channels. Doing this, I noticed that if you accidentally join a channel you are already on (pressing twice the same button), then try to go to a different channel, it makes discord crashes (and then you have to stop and restart the plugin).
I tried to put some safeguard tests on my buttons to prevent sending the channel change request if I'm already connected to it, using Voice Channel Name value for example, but it does not work all the time, as if the value is not always set correctly or events not received properly
I'd like for the plugin to be able to read what speaker is currently speaking, in sort of the way Fugi Reactive does, so that I can trigger other actions based on who is currently talking (IE moving active speakers on and off the OBS overlay as they become active.) Maybe I'm just not familiar enough with the plugin yet and this already exists if so I apologize!
For some users the process watcher can't spawn the cmd in order to run the process watcher, need to try to determine why this is occurring as Command Prompt is installed on windows by default, and as far as I know can't be uninstalled.
15:29:41.688 - [ERROR] (Plugin Instance) events.js:292
15:29:41.689 - [ERROR] (Plugin Instance) throw er; // Unhandled 'error' event
15:29:41.690 - [ERROR] (Plugin Instance) ^
15:29:41.691 - [ERROR] (Plugin Instance)
15:29:41.692 - [ERROR] (Plugin Instance) Error reading communication: Connection reset
15:29:41.692 - [ERROR] (Plugin Instance) Error: spawn cmd ENOENT
15:29:41.693 - [ERROR] (Plugin Instance) Plugin Connection has been incorrectly closed...
15:29:41.693 - [ERROR] (Plugin Instance) at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
15:29:41.694 - [ERROR] (Plugin Instance) Connection has been closed...
15:29:41.694 - [ERROR] (Plugin Instance) at onErrorNT (internal/child_process.js:469:16)
15:29:41.695 - [ERROR] (Plugin Instance) at processTicksAndRejections (internal/process/task_queues.js:84:21)
15:29:41.696 - [ERROR] (Plugin Instance) Emitted 'error' event on ChildProcess instance at:
15:29:41.697 - [ERROR] (Plugin Instance) at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
15:29:41.698 - [ERROR] (Plugin Instance) at onErrorNT (internal/child_process.js:469:16)
15:29:41.699 - [ERROR] (Plugin Instance) at processTicksAndRejections (internal/process/task_queues.js:84:21) {
15:29:41.699 - [ERROR] (Plugin Instance) errno: 'ENOENT',
15:29:41.700 - [ERROR] (Plugin Instance) code: 'ENOENT',
15:29:41.701 - [ERROR] (Plugin Instance) syscall: 'spawn cmd',
15:29:41.701 - [ERROR] (Plugin Instance) path: 'cmd',
15:29:41.702 - [ERROR] (Plugin Instance) spawnargs: [
15:29:41.703 - [ERROR] (Plugin Instance) '/c',
15:29:41.704 - [ERROR] (Plugin Instance) 'WMIC path win32_process get Name,Processid,ParentProcessId,Commandline,ExecutablePath'
15:29:41.704 - [ERROR] (Plugin Instance) ]
15:29:41.705 - [ERROR] (Plugin Instance) }
Input/Output volume Control Inside Discord
https://discord.com/developers/docs/topics/rpc#setvoicesettings
and setting Volume using these objects.
I'm new to this plugin and I have read and followed the steps of installation, however, I cannot make it work. On step 25, discord does not ask me for permission to authorize the app and my touch portal says that the plug-in is disconnected.
If in Voice Chat, collect other users also in voice chat and send their names into a Value inside Touch Portal.
Comma Delimited in Single List would probably be easiest
Join Text/Voice channel
As part of my rewrite I pulled out storing the AuthToken that is provided by Discord
Now looking back that wasn't the best option and need to resolve this.
Thinking what i'll do is create a readonly setting that I can use as a password type.
Update to send the setting when we get an auth token back.
if we get an error need to trap it clear it and reauthorize.
Hangup Voice Channel
As a user I want to switch to a text channel either in Touch Portal or Discord and see a new state holding the value of what Text Channel you are currently in.
Unsure if api supports this. Will investigate.
I have a problem with the TPDiscord Plugin, when I open the touchportal the plugin works properly but after a while (about 5 minutes) it stops working and I have to restart the TPDiscord Plugin, so that it works again but the same thing happens again , any idea how to solve this problem?
im trying to connect it but every time i enter the details for the discord plug in it keeps loading the page then just saying that localhost refuses to connect.
When I run a build script (ie npm run-script build-win
), I get an error from pkg:
Warning Cannot resolve 'path.join(__dirname, '/process_watcher')'
C:\Users\PRIVATE\Documents\Coding\Projects\TouchPortal_Discord_Plugin\src\index.js
Dynamic require may fail at run time, because the requested file
is unknown at compilation time and not included into executable.
Use a string literal as an argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
1 file(s) moved.
Am I doing something wrong? Thanks!
Hello guys, i cant create API
I followed alll the step to create but never apears this "After a few seconds, you should get asked to authorize the application you created as a plugin in Discord, click "Authorize". i already stop and resumed plugin, also i deleted and installed again.
TouchPortal_Discord_Plugin/src/index.js
Line 219 in 640cb66
It appears the latest discord update restricts the "rpc" scope, which this plugin relies on.
Doing some research to see what I can do about it.
I have followed all of the instructions to install/set up the plugin for use; however discord is not poping up to autherize the plugin
log.txt
Please Help
For me, it does not show the window, to accept the plugin integration to work with my account. I did restart the plugin, and everything i could do, but it still did not show up. I am very interested in using the plugin, and would love to hear, how we can solve the issue. Hoping for your answer, and have a good day!
-Mr_Join
Initially I get the 2 pages, discord developer and localhost:9403 open up no problems, however once submitting the client id and secret the page becomes unreachable. If I reload the page at all even before submitting anything, it also becomes unreachable.
As a User I would like to use TouchPortal to control another PC's Discord Instance.
Woudl have to build an independent executable to run on that other host, that needs to be running and waiting on a connection on a configured port.
Add configuration to Discord Plugin to allow for configuring IP address and Port of that 2nd PC.
Basically replicate all functions of Discord in that alternate build, So this would then mean the local discord plugin is really only a client between Touch Portal and the Remote Discord plugin.
Maybe needs to be Remote Discord Plugin as an alternate to this one.
please ?
Have had multiple reports about the .exe being flagged as a Trojan will need to research what is going on and see if this can be mitigated during the build process.
Look into noise_suppression and other voice settings capabilities and states
Whenever I attempt to import this plugin into windows Touch Portal 3.0.8.0.0 it starts importing but then gets stuck at "Analyzing" and doesn't move. I've left it for about an hour and nothing had changed. Other plugins imported just fine. I've tried each of the Windows installers from the repo but they all do the same thing. I've tried on multiple machines also.
Is there something I'm missing?
Windows 10 Pro x64
Whenever discord is closed, such as for an update or manual restart, the plugin throws a connection closed error and stops running. This issue can only then be fixed by manually restarting the plugin.
I've tested this with the latest release (v4.3.1) and the pre-release (v4.4.0-Alpha-1) and get the same results (log is from 4.4.0)
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.