public TwitchChatBot()
 {
     InitializeComponent();
     
     me = this;
     
     ChannelIn = new Channel("lezrecop"); //start in my channel because why not :)
     Client = new BotClient();
     Scrubber = new MessageScrubber();
 }
 public void JoinChannel(Channel channel)
 {
     WriteToClientStream("JOIN #" + channel.Name);
     TwitchChatBot.me.ChannelIn = channel;
     TwitchChatBot.me.cmdsFromFile = new FileEditor(TwitchChatBot.me.ChannelIn.Name + "_cmds.txt");
     TwitchChatBot.me.modCmdsFromFile = new FileEditor(TwitchChatBot.me.ChannelIn.Name + "_mod_cmds.txt");
     TwitchChatBot.me.ownerCmdsFromFile = new FileEditor(TwitchChatBot.me.ChannelIn.Name + "_owner_cmds.txt");
     ModList.modFile = new FileEditor(TwitchChatBot.me.ChannelIn.Name + "_mods.txt");
     TwitchChatBot.me.cmdList = new CommandList();
     TwitchChatBot.me.modCmdList = new ModCommandList();
     TwitchChatBot.me.ownerCmdList = new OwnerCommandList();
     TwitchChatBot.me.chatLog = new ChatLog(channel);
     //SendChatMessage("Hola " + channel.Name + "! Soy LezrecBot! LezrecOp me hizo, y lo amo para eso <3.");
     //Whisper("psst, your bot is living Kappa", TwitchChatBot.THE_MAN);
     TwitchChatBot.me.AddHappening(this, new Happening(Happening.State.Modification, $"Changed channel to {channel.Name}"));
 }
 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."));
 }