public ChatLog(Channel channel) { myFile = new FileEditor(channel.Name + "_logs.txt"); myFile.WriteAllText(""); TwitchChatBot.me.AddHappening(this, new Happening(Happening.State.Modification, "Cleared chat logs on reboot.")); }
private void Form1_Load(object sender, EventArgs e) { loadObj = sender; loadEventArgs = e; if (!started) { Size = new Size((int)1280 / (int)2, (int)720 / (int)2); MinimumSize = Size; MaximumSize = Size; timer = new PersonalTimer(); started = true; myHandler = new HappeningHandler(); THE_MAN = new Developer("lezrecop", 3); Twitch_IRC = new Developer("Twitch", 3); Client.Load(); cmdsFromFile = new FileEditor(ChannelIn.Name + "_cmds.txt"); modCmdsFromFile = new FileEditor(ChannelIn.Name + "_mod_cmds.txt"); ownerCmdsFromFile = new FileEditor(ChannelIn.Name + "_owner_cmds.txt"); if (Client.CanConnect()) { timer.Start(); Client.JoinChannel(ChannelIn); label3.Text = $"Current Channel: {ChannelIn.Name}"; cmdList = new CommandList(); modCmdList = new ModCommandList(); ownerCmdList = new OwnerCommandList(); cmdList.UpdateGUI(); chatLog = new ChatLog(ChannelIn); } else { timer.Abort(); } //To frikken do the mass comment do Ctrl + K + C //BeginTesting //Happening hap1 = new Happening(); //Happening hap2 = new Happening(); //Happening hap3 = new Happening(); //Happening hap4 = new Happening(); //Happening hap5 = new Happening(); //Happening[] haps = new Happening[] { hap1, hap2, hap3, hap4, hap5 }; //HappeningList list = new HappeningList(); //foreach(Happening hap in haps) //{ // list.Add(hap); //} //EndTesting } }