private void BanYouBecauseYouAreStupidAndYouShouldntHaveDoneThat(SqlTwitchUser speaker, String lastWords) { //yay i changed my ide ti keep the brackets on this line! room.SendChatMessage(".ban " + speaker.userName); //if this line gets ran you deserve it. room.SendChatMessage(speaker.userName + " is now banned. Everyone in the chat should type 'F' or riPepperonis to pay respects."); //lol jk dont do this lastWords = null; //noone cares so im deleting your words }
public void ObserveChatMessage(TwitchChatRoom room, SqlTwitchUser speaker, string message) { if(this.room.Equals(room)) { if(message != null && message.StartsWith("!")) { ObserveCommand(speaker, message.Substring(1)); } } }
private void About(SqlTwitchUser speaker, String additionalText) { if (!additionalText.IsEmpty() && additionalText.Equals("sober")) { room.SendChatMessage("//TODO get quote from sober"); //I NEED SOMEETHING FROM YOU SOBER ~1am } else { room.SendChatMessage("Hi, I am HardlyBot! I am a chatbot designed to host card games. I am currently open source and made by HardlySober @ http://bit.ly/1LUViNe "); } }
private void TimeMeOut(SqlTwitchUser speaker, String time) { try { if (time.IsEmpty()) { room.SendChatMessage(".timeout " + speaker.userName + " " + Random.Uint.Between(1, 600)); } else { room.SendChatMessage(".timeout " + speaker.userName + " " + Int32.Parse(time)); } } catch (Exception) { //*do nothing ever i want this to be (somewhat)secret*// } }
private void EchoCommand(SqlTwitchUser speaker, String additionalText) { string message = "You said "; if (additionalText == null) { message += "...nothing!"; } else { if (additionalText.ToLower().Contains("f**k")) { message = "Hey now."; } else { message += additionalText; } } room.SendWhisper(speaker, message); }
//public void ObserveWhisperMessage(TwitchChatRoom room, SqlTwitchUser speaker, string message) { // if(this.room.Equals(room)) { // ObserveCommand(speaker, message); // } //} internal abstract void ObserveCommand(SqlTwitchUser speaker, string message);
public SqlTwitchBot(SqlTwitchUser user, string oauthPassword = null) : base(new object[] { user.id, oauthPassword }) { this.user = user; }
private void HiCommand(SqlTwitchUser speaker, String additionalText) { room.SendWhisper(speaker, "Hello"); }