GithubHelp home page GithubHelp logo

spdermn02 / touchportal_discord_plugin Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 23.0 565.66 MB

Touch Portal Plugin to Interact with Discord

License: GNU General Public License v3.0

JavaScript 13.94% Shell 0.11% PLSQL 85.95%

touchportal_discord_plugin's People

Contributors

jeffreybytes avatar spdermn02 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

Watchers

 avatar  avatar

touchportal_discord_plugin's Issues

Windows Hibernation causes discord to not be able to be connected to

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.

Latest TP app stuck on analyzing when installing the discord plugin.

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.

[Feature Request] Mic Events

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

Request

Can we get a Streamer Mode Toggle action, just like for Mute and Deafen?

[Request]

Event and state for process watcher.
That way can tell if discord is running or not in a advance button

Sometimes Plugin Needs Restart

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.

Authorization does not pop up

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?

Control Individual Voice Users Volume

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.

Feature Request - Post to Channel

Would it be possible to include the ability to post to channels?
i.e. On Twitch, using the Channel Points redemption, I would love to post the suggestions into a private channel on my Discord. Which is currently setup outputting to a txt file (screenshot attached)
image

Can't join specific channel if name is the same

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?)

Push to Talk no longer working

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.

Feature request - Set Status

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.

TP-discord mac 4.0.5 crashes on start-up

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) '




ERR_CONNECTION_REFUSED - During onboarding

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?

Feature request: Soundboard

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)

Voice channel selection issue

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

Active Speaker Status Feature Request

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!

The newest installer plug-in does not work.

The plugin i imported was okay but the plugin connected shows as disconnected as in the pic.
issue
I even ran discord as admin but still didn't work. I even tried the older version of the update and it still did not work. I'm currently confused.

Process Watcher Failing on some users PC's

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) }

Can't connect to discord upon installation

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.

Collect user names from current Voice Chat

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

Authorization Asked For every time Touch Portal Starts

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.

Discord text Channel Name

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.

Bug TPdiscord Plugin is disabled

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?

cant connect

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.

pkg Warning when running build scripts

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!

CANT CREATE API

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.

Discord does not pop up

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

Discord 0Auth2

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

localhost:9403 unreachable

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.

Remote Control another PC's Discord Instance

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.

More Voice Settings

Look into noise_suppression and other voice settings capabilities and states

Cannot import into Touch Portal 3.0.8.0.0

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

When discord is closed, plugin throws error.

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.

discord closed.log

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)

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.