mirror of
https://github.com/liyunze-coding/rython-task-bot-v2.git
synced 2026-09-22 07:24:27 +00:00
0.2.0: Added Kick Support
This commit is contained in:
parent
32ac1b8fd4
commit
9d13250153
2 changed files with 10 additions and 3 deletions
11
Code.cs
11
Code.cs
|
|
@ -594,13 +594,20 @@ public class CPHInline
|
|||
switch (platform)
|
||||
{
|
||||
case "twitch":
|
||||
CPH.TryGetArg("msgId", out string msgId);
|
||||
CPH.TwitchReplyToMessage(message, msgId);
|
||||
CPH.TryGetArg("msgId", out string twitchMsgId);
|
||||
CPH.TwitchReplyToMessage(message, twitchMsgId);
|
||||
break;
|
||||
case "youtube":
|
||||
CPH.TryGetArg("user", out string YTUser);
|
||||
CPH.SendYouTubeMessage($"@{YTUser} {message}");
|
||||
break;
|
||||
case "kick":
|
||||
CPH.TryGetArg("user", out string kickUser);
|
||||
CPH.TryGetArg("msgId", out string kickMsgId);
|
||||
CPH.KickReplyToMessage($"@{kickUser} {message}", kickMsgId);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue