예제 #1
0
 private void Client_OnJoinedChannel(object sender, OnJoinedChannelArgs e)
 {
     client.SendMessage($"LUL {e.Channel}");
     Console.WriteLine("Joined Channel: {0}", e.Channel);
 }
예제 #2
0
 /// <summary>
 /// Creates new VIP user (REQUIRES SCOPE: channel:moderate)
 /// </summary>
 /// <param name="client">Client reference used to identify extension.</param>
 /// <param name="channel">String representation of the channel to send the VIP command to.</param>
 /// <param name="viewerToVIP">The viewer to vip.</param>
 public static void VIP(this ITwitchClient client, string channel, string viewerToVIP)
 {
     client.SendMessage(channel, $".vip {viewerToVIP}");
 }
예제 #3
0
 /// <summary>
 /// Sends request to change color of chat name in Twitch chat.
 /// </summary>
 /// <param name="client">Client reference used to identify extension.</param>
 /// <param name="channel">String representing the channel to send the command to.</param>
 /// <param name="color">Enum representing available chat preset colors.</param>
 public static void ChangeChatColor(this ITwitchClient client, string channel, Enums.ChatColorPresets color)
 {
     client.SendMessage(channel, $".color {color}");
 }