void bot_IssuedCommand(IrcBot iB, CommandEventArgs e) { if (e.Command == "player") { commands.Add(new CustomString() { Beginning = e.Player, End = e.NewPlayer.ToString() }); } else { commands.Add(new CustomString() { Beginning = e.Player, End = e.Command }); } ShowText(); }
public Form1() { //INSTALLE VJOY //http://softlayer-ams.dl.sourceforge.net/project/vjoystick/Beta%202.x/2.0.2%20030114/vJoy_x86x64_I030114.exe //les DLL sont supposer se placer tuseul dans le projet mais un DLL fait rien si t'as pas le driver de vJoy installé #if DEBUG AllocConsole(); #endif InitializeComponent(); HideCaret(richTextBox1.Handle); bot = new IrcBot(); commands = new List<CustomString>(); singleCharSize = TextRenderer.MeasureText("a", richTextBox1.Font); this.BackColor = Color.Black; richTextBox1.BackColor = this.BackColor; richTextBox1.ForeColor = Color.White; charWidth = richTextBox1.Width / singleCharSize.Width; charHeight = richTextBox1.Height / singleCharSize.Height; bot.IssuedCommand += bot_IssuedCommand; }