mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
tested version with most of the final functionality. Still a few known issues, like dragging to a row that extends to multiple lines
This commit is contained in:
@@ -178,13 +178,13 @@ public partial class TwitchChatWatcher : Node
|
||||
_ = Task.Run(() => SendPong(tcm), Token);
|
||||
else if (tcm is Privmsg p)
|
||||
{
|
||||
var com = Settings.Command;
|
||||
if (string.IsNullOrWhiteSpace(com))
|
||||
var trig = Settings.Trigger;
|
||||
if (string.IsNullOrWhiteSpace(trig))
|
||||
break;
|
||||
if (!p.ChatMessage.StartsWith(com))
|
||||
if (!p.ChatMessage.StartsWith(trig))
|
||||
continue;
|
||||
var chat = p.ChatMessage;
|
||||
chat = chat[com.Length..].TrimStart();
|
||||
chat = chat[trig.Length..].TrimStart();
|
||||
//TODO make better
|
||||
CallDeferred("emit_signal", SignalName.IncomingCommand,
|
||||
new Command(p.DisplayName,
|
||||
|
||||
Reference in New Issue
Block a user