示例#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);
 }