Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Added support for Channel Ids to the "Channel Switch" Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerGo0 committed Mar 28, 2021
1 parent 06db32f commit d92fd03
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 119 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,35 @@
Allows you to interact with the TeamSpeak 3 Client via the ClientQuery (Telnet) with your Stream Deck

## Requirements
You need to have the [ClientQuery plugin](https://www.myteamspeak.com/addons/943dd816-7ef2-48d7-82b8-d60c3b9b10b3) installed in your TeamSpeak 3 Client in order to use this plugin.

You need to have the [ClientQuery plugin](https://www.myteamspeak.com/addons/943dd816-7ef2-48d7-82b8-d60c3b9b10b3)
installed in your TeamSpeak 3 Client in order to use this plugin.

## Changelog

[v1.7](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.7):

- Added support for Channel Ids to the `Channel Switch` Action

[v1.6](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.6):

- Fixed: "|" in `Change Nickname`, `Away Status Message` and so on not working
- Added `Channel Switch` Action which allows you to switch the channel when you press the button

[v1.5](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.5):

- Fixed: Spaces in `Change Nickname`, `Away Status Message` and so on not working
- Added `Toggle INPUT (Local) Mute` Action which allows you to toggle the input mute status locally so that no one on the server can see it (Currently there is no dynamic way to update this status (couldn't find any public information about this), it will use the button state for now)
- Added `Toggle INPUT (Local) Mute` Action which allows you to toggle the input mute status locally so that no one on
the server can see it (Currently there is no dynamic way to update this status (couldn't find any public information
about this), it will use the button state for now)

[v1.4](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.4):
- All actions use 1 Telnet Client now (This should fix a lot of issues and hopefully it shouldn't use that much resources anymore when it fails to create a new Telnet connection)

[v1.3](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.3):
- Added `Toggle AFK Status` Action which allows you to toggle the away status, input and output mute.FixTs3SpecificChars()

- Added `Toggle AFK Status` Action which allows you to toggle the away status, input and output mute when you press the
button

[v1.2](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/tag/v1.2):
- Added `Change Nickname` Action which allows you to change your name when you press the button
Expand Down Expand Up @@ -46,8 +59,10 @@ You need to have the [ClientQuery plugin](https://www.myteamspeak.com/addons/943
* [Download plugin](https://github.com/ZerGo0/streamdeck-teamspeak3integration/releases/)

## Possible improvements
- ~~1 Telnet Client/Connection for all actions (definitely needed for more actions in the future, the TS3 Client can't handle too many connections)~~ ✔️ Done
- ClientQuery API-Key shared across all actions

- ~~1 Telnet Client/Connection for all actions (definitely needed for more actions in the future, the TS3 Client can't
handle too many connections)~~ ✔️ Done
- ~~ClientQuery API-Key shared across all actions~~

## I found a bug, who do I contact?
For support please contact the developer. Contact information is available at <https://github.com/ZerGo0>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
Expand Down Expand Up @@ -142,14 +137,14 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members
#region Private Members

private readonly PluginSettings _settings;
private int _savedSatus;

#endregion
#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -223,6 +218,6 @@ private async Task SetAwayStatusState(int muted = 0)
}
}

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
Expand Down Expand Up @@ -142,14 +137,14 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members
#region Private Members

private readonly PluginSettings _settings;
private int _savedSatus;

#endregion
#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -219,6 +214,6 @@ private async Task SetAwayStatusState(int muted = 0)
}
}

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using PrimS.Telnet;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
{
[PluginActionId("com.zergo0.teamspeak3integration.changenickname")]
public class TeamSpeak3ChangeNicknameAction : PluginBase
{
#region Private Members

private readonly PluginSettings _settings;

#endregion

public TeamSpeak3ChangeNicknameAction(SDConnection connection, InitialPayload payload) : base(connection,
payload)
{
Expand Down Expand Up @@ -98,13 +97,7 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members

private readonly PluginSettings _settings;

#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -139,6 +132,6 @@ private void ChangeNickname()
}
}

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
{
[PluginActionId("com.zergo0.teamspeak3integration.channelswitch")]
public class TeamSpeak3ChannelSwitchAction : PluginBase
{
public TeamSpeak3ChannelSwitchAction(SDConnection connection, InitialPayload payload) : base(connection, payload)
#region Private Members

private readonly PluginSettings _settings;

#endregion

public TeamSpeak3ChannelSwitchAction(SDConnection connection, InitialPayload payload) : base(connection,
payload)
{
if (payload.Settings == null || payload.Settings.Count == 0)
_settings = PluginSettings.CreateDefaultSettings();
Expand Down Expand Up @@ -95,12 +97,6 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members

private readonly PluginSettings _settings;

#endregion

#region Private Methods

private Task SaveSettings()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
Expand Down Expand Up @@ -138,14 +133,14 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members
#region Private Members

private readonly PluginSettings _settings;
private int _savedSatus;

#endregion
#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -213,6 +208,6 @@ private async Task SetInputStatusState(int muted = 0)
}
}

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
{
[PluginActionId("com.zergo0.teamspeak3integration.toggleinputmutelocally")]
public class TeamSpeak3InputMuteLocallyAction : PluginBase
{
public TeamSpeak3InputMuteLocallyAction(SDConnection connection, InitialPayload payload) : base(connection, payload)
public TeamSpeak3InputMuteLocallyAction(SDConnection connection, InitialPayload payload) : base(connection,
payload)
{
if (payload.Settings == null || payload.Settings.Count == 0)
_settings = PluginSettings.CreateDefaultSettings();
Expand Down Expand Up @@ -138,14 +134,14 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members
#region Private Members

private readonly PluginSettings _settings;
private int _savedSatus;

#endregion
#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -213,6 +209,6 @@ private async Task SetInputStatusStateLocally(int muted = 0)
}
}

#endregion
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
using System;
using System.Threading.Tasks;

using BarRaider.SdTools;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

using streamdeck_client_csharp;
using streamdeck_client_csharp.Events;

using ZerGo0.TeamSpeak3Integration.Helpers;

using KeyPayload = BarRaider.SdTools.KeyPayload;

namespace ZerGo0.TeamSpeak3Integration.Actions
Expand Down Expand Up @@ -138,14 +133,14 @@ public static PluginSettings CreateDefaultSettings()
}
}

#region Private Members
#region Private Members

private readonly PluginSettings _settings;
private int _savedSatus;

#endregion
#endregion

#region Private Methods
#region Private Methods

private Task SaveSettings()
{
Expand Down Expand Up @@ -213,6 +208,6 @@ private async Task SetOutputStatusState(int muted = 0)
}
}

#endregion
#endregion
}
}
Loading

0 comments on commit d92fd03

Please sign in to comment.