Skip to content

Commit

Permalink
moved to .net 8, bug
Browse files Browse the repository at this point in the history
this finally made me install .net sdk
and try it locally first :)
  • Loading branch information
chamik committed Jan 14, 2024
1 parent fd4ea69 commit 7f22aa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions thorn/Services/CommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ await m.Channel.SendMessageAsync(_random.Next(2) == 0
else if (Regex.IsMatch(m.Content, @":3"))
await m.Channel.SendMessageAsync(":33");

else if (Regex.IsMatch(m.Content, @"how waifu[\?]?", RegexOptions.IgnoreCase))
await m.Channel.SendMessageAsync(HowWaifu(m.MentionedUsers.First() ?? m.Author));
else if (Regex.IsMatch(m.Content, @"how waifu[\?]?", RegexOptions.IgnoreCase)){
SocketUser usr;
try { usr = m.MentionedUsers.First(); }
catch { usr = m.Author; }

await m.Channel.SendMessageAsync(HowWaifu(usr));
}

else return false;
return true;
Expand Down Expand Up @@ -116,7 +121,7 @@ private string HowWaifu(SocketUser usr)
else if (p < 100)
mention += $"Neuvěřitelné! Jsi waifu ze skvělých {p}% :D";
else
mention += $"おお! 100%! あなたは完全にワイフです!! 😳";
mention += $"Honto? 100%! Omae wa waifu no materiaru da yo!! Sugoi!!! 😳";

return mention;
}
Expand Down
2 changes: 1 addition & 1 deletion thorn/thorn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7f22aa4

Please sign in to comment.