コード例 #1
0
ファイル: Program.cs プロジェクト: Mofsy/jinxbot
 static void Client_JoinedChannel(object sender, ServerChatEventArgs args)
 {
     PrintTidTs(DateTime.Now);
     console.OutputForegroundColor = ConsoleColor.Gray;
     console.Write("Joining channel ");
     console.OutputForegroundColor = ConsoleColor.White;
     console.WriteLine(args.Text);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: Mofsy/jinxbot
 static void client_Broadcast(object sender, ServerChatEventArgs e)
 {
     PrintTidTs(DateTime.Now);
     console.OutputForegroundColor = ConsoleColor.Yellow;
     console.WriteLine("Broadcast: {0}", e.Text);
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: Mofsy/jinxbot
 static void client_ServerError(object sender, ServerChatEventArgs e)
 {
     PrintTidTs(DateTime.Now);
     console.OutputForegroundColor = ConsoleColor.Red;
     console.WriteLine(e.Text);
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: Mofsy/jinxbot
 static void Channel_NewChannelJoined(object sender, ServerChatEventArgs e)
 {
     Client_JoinedChannel(sender, e);
 }