mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-02-08 03:17:15 +00:00
commit
3be9d1b603
@ -216,24 +216,23 @@ namespace CompatBot.Commands
|
|||||||
}
|
}
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
if (removed == 0)
|
if (isKot && isDoggo)
|
||||||
{
|
{
|
||||||
if (isKot && isDoggo)
|
if (new Random().NextDouble() < 0.5)
|
||||||
{
|
isKot = false;
|
||||||
if (new Random().NextDouble() < 0.5)
|
|
||||||
isKot = false;
|
|
||||||
else
|
|
||||||
isDoggo = false;
|
|
||||||
}
|
|
||||||
if (isKot)
|
|
||||||
await message.RespondAsync($"{userName} has no warnings, is an upstanding kot, and a paw bean of this community").ConfigureAwait(false);
|
|
||||||
else if (isDoggo)
|
|
||||||
await message.RespondAsync($"{userName} has no warnings, is a good boy, and a wiggling tail of this community").ConfigureAwait(false);
|
|
||||||
else
|
else
|
||||||
await message.RespondAsync($"{userName} has no warnings, is an upstanding citizen, and a pillar of this community").ConfigureAwait(false);
|
isDoggo = false;
|
||||||
}
|
}
|
||||||
else
|
var msg = (removed, isKot, isDoggo) switch
|
||||||
await message.RespondAsync(userName + " has no warnings" + (isPrivate ? $" ({removed} retracted warning{(removed == 1 ? "" : "s")})" : "")).ConfigureAwait(false);
|
{
|
||||||
|
(0, true, false) => $"{userName} has no warnings, is an upstanding kot, and a paw bean of this community",
|
||||||
|
(0, false, true) => $"{userName} has no warnings, is a good boy, and a wiggling tail of this community",
|
||||||
|
(0, _, _) => $"{userName} has no warnings, is an upstanding citizen, and a pillar of this community",
|
||||||
|
(_, true, false) => $"{userName} has no warnings{(isPrivate ? $" ({removed} retracted warning{(removed == 1 ? "" : "s")}), but are they a good kot?" : "")}",
|
||||||
|
(_, false, true) => $"{userName} has no warnings{(isPrivate ? $" ({removed} retracted warning{(removed == 1 ? "" : "s")}), but are they a good boy?" : "")}",
|
||||||
|
_ => $"{userName} has no warnings{(isPrivate ? $" ({removed} retracted warning{(removed == 1 ? "" : "s")})" : "")}",
|
||||||
|
};
|
||||||
|
await message.RespondAsync(msg).ConfigureAwait(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,6 +118,8 @@ namespace CompatBot.Database.Providers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await message.Channel.DeleteMessageAsync(message, $"Removed according to filter '{trigger}'").ConfigureAwait(false);
|
await message.Channel.DeleteMessageAsync(message, $"Removed according to filter '{trigger}'").ConfigureAwait(false);
|
||||||
|
var author = client.GetMember(message.Author);
|
||||||
|
Config.Log.Debug($"Removed message from {author.GetMentionWithNickname()} in #{message.Channel.Name}: {message.Content}");
|
||||||
completedActions.Add(FilterAction.RemoveContent);
|
completedActions.Add(FilterAction.RemoveContent);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -512,7 +512,7 @@ namespace CompatBot.Utils.ResultFormatters
|
|||||||
builder.AddField("Missing Licenses", content);
|
builder.AddField("Missing Licenses", content);
|
||||||
|
|
||||||
var gameRegion = items["serial"] is string serial && serial.Length > 3 ? new[] {serial[2]} : Enumerable.Empty<char>();
|
var gameRegion = items["serial"] is string serial && serial.Length > 3 ? new[] {serial[2]} : Enumerable.Empty<char>();
|
||||||
var dlcRegions = licenseNames.Select(n => n[2]).Concat(gameRegion).Distinct().ToArray();
|
var dlcRegions = licenseNames.Select(n => n[9]).Concat(gameRegion).Distinct().ToArray();
|
||||||
if (dlcRegions.Length > 1)
|
if (dlcRegions.Length > 1)
|
||||||
generalNotes.Add($"🤔 Very interesting DLC collection from {dlcRegions.Length} different regions you got there");
|
generalNotes.Add($"🤔 Very interesting DLC collection from {dlcRegions.Length} different regions you got there");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user