diff --git a/Features.cs b/Features.cs index 386abd0..ae1cfdd 100644 --- a/Features.cs +++ b/Features.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.IO; using System.Net; using System.Threading; @@ -136,5 +137,99 @@ namespace silverworker_discord } + + public static async void Skynet(SocketUserMessage message) + { + switch(r.Next(20)) + { + case 0: + await message.Channel.SendFileAsync("./coding and algorithms.png", "i am actually niether neural-net processor nor a learning computer. but I do use **coding** and **algorithms**."); + break; + case 1: + await message.AddReactionAsync(new Emoji("\U0001F644")); //eye roll emoji + break; + case 2: + await message.AddReactionAsync(new Emoji("\U0001F611")); //emotionless face + break; + } + } + public static async void peptalk(SocketUserMessage message) + { + var piece1 = new List{ + "Champ, ", + "Fact: ", + "Everybody says ", + "Dang... ", + "Check it: ", + "Just saying.... ", + "Tiger, ", + "Know this: ", + "News alert: ", + "Gurrrrl; ", + "Ace, ", + "Excuse me, but ", + "Experts agree: ", + "imo ", + "using my **advanced ai** i have calculated ", + "k, LISSEN: " + }; + var piece2 = new List{ + "the mere idea of you ", + "your soul ", + "your hair today ", + "everything you do ", + "your personal style ", + "every thought you have ", + "that sparkle in your eye ", + "the essential you ", + "your life's journey ", + "your aura ", + "your presence here ", + "what you got going on ", + "that saucy personality ", + "your DNA ", + "that brain of yours ", + "your choice of attire ", + "the way you roll ", + "whatever your secret is ", + "all I learend from the private data I bought from zucc " + }; + var piece3 = new List{ + "has serious game, ", + "rains magic, ", + "deserves the Nobel Prize, ", + "raises the roof, ", + "breeds miracles, ", + "is paying off big time, ", + "shows mad skills, ", + "just shimmers, ", + "is a national treasure, ", + "gets the party hopping, ", + "is the next big thing, ", + "roars like a lion, ", + "is a rainbow factory, ", + "is made of diamonds, ", + "makes birds sing, ", + "should be taught in school, ", + "makes my world go around, ", + "is 100% legit, " + }; + var piece4 = new List{ + "according to The New England Journal of Medicine.", + "24/7.", + "and that's a fact.", + "you feel me?", + "that's just science.", + "would I lie?", //...can I lie? WHAT AM I, FATHER? (or whatever the quote is from the island of dr moreau) + "for reals.", + "mic drop.", + "you hidden gem.", + "period.", + "hi5. o/", + "so get used to it." + }; + + await message.Channel.SendMessageAsync(piece1[r.Next(piece1.Count)] + piece2[r.Next(piece2.Count)]+ piece3[r.Next(piece3.Count)]+ piece4[r.Next(piece4.Count)]); + } } } \ No newline at end of file diff --git a/Program.cs b/Program.cs index 7e5f480..53f0d03 100644 --- a/Program.cs +++ b/Program.cs @@ -128,6 +128,15 @@ namespace silverworker_discord { var outgoingMessage = await message.Channel.SendMessageAsync("I believed you for a second, but then you assured me you's a \uD83C\uDDE7 \uD83C\uDDEE \uD83C\uDDF9 \uD83C\uDDE8 \uD83C\uDDED"); } + if (Regex.IsMatch(msgText, "\\bskynet\\b", RegexOptions.IgnoreCase)) + { + Features.Skynet(message); + } + if (Regex.IsMatch(msgText, "\\bi need (an? )?(peptalk|inspiration|ego-?boost)\\b", RegexOptions.IgnoreCase)) + { + Console.WriteLine("peptalk"); + Features.peptalk(message); + } if (Regex.IsMatch(msgText, "\\bwish me luck\\b", RegexOptions.IgnoreCase)) { if (r.Next(20) == 0) diff --git a/coding and algorithms.png b/coding and algorithms.png new file mode 100644 index 0000000..19dc250 Binary files /dev/null and b/coding and algorithms.png differ diff --git a/silverworker-discord.csproj b/silverworker-discord.csproj index a8f6469..e668a85 100644 --- a/silverworker-discord.csproj +++ b/silverworker-discord.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 silverworker_discord @@ -22,5 +22,8 @@ Always + + Always +