mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-15 10:32:44 -04:00
Fixed some more hardcoded references to BMJ
This commit is contained in:
@@ -175,11 +175,11 @@ public class CleanCommand : ICommand
|
|||||||
var start = await Helpers.GetValue(BuiltIn.Keys.BotCleanStartTime);
|
var start = await Helpers.GetValue(BuiltIn.Keys.BotCleanStartTime);
|
||||||
if (start.Value == null)
|
if (start.Value == null)
|
||||||
{
|
{
|
||||||
await botInstance.SendChatMessageAsync("Bossman's sobriety start date was null", true);
|
await botInstance.SendChatMessageAsync("Austin's sobriety start date was null", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var timespan = DateTimeOffset.UtcNow - DateTimeOffset.Parse(start.Value);
|
var timespan = DateTimeOffset.UtcNow - DateTimeOffset.Parse(start.Value);
|
||||||
await botInstance.SendChatMessageAsync($"Bossman has been clean {timespan.Humanize(precision:5)}", true);
|
await botInstance.SendChatMessageAsync($"AustinGambles has been clean {timespan.Humanize(precision:5)}", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,11 +196,11 @@ public class RehbCommand : ICommand
|
|||||||
var end = await Helpers.GetValue(BuiltIn.Keys.BotRehabEndTime);
|
var end = await Helpers.GetValue(BuiltIn.Keys.BotRehabEndTime);
|
||||||
if (end.Value == null)
|
if (end.Value == null)
|
||||||
{
|
{
|
||||||
await botInstance.SendChatMessageAsync("Bossman's rehab end date was null", true);
|
await botInstance.SendChatMessageAsync("Austin's rehab end date was null", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var timespan = DateTimeOffset.Parse(end.Value) - DateTimeOffset.UtcNow;
|
var timespan = DateTimeOffset.Parse(end.Value) - DateTimeOffset.UtcNow;
|
||||||
await botInstance.SendChatMessageAsync($"Bossman was kicked out of rehab {timespan.Humanize(precision:3)} ago", true);
|
await botInstance.SendChatMessageAsync($"AustinGambles was kicked out of rehab {timespan.Humanize(precision:3)} ago", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@ public class NextPoVisitCommand : ICommand
|
|||||||
await botInstance.SendChatMessageAsync("It's over", true);
|
await botInstance.SendChatMessageAsync("It's over", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var sent = await botInstance.SendChatMessageAsync($"Bossman's next PO visit will be in roughly {timespan.Humanize(precision: 10, minUnit: TimeUnit.Millisecond)}", true);
|
var sent = await botInstance.SendChatMessageAsync($"Austin's next PO visit will be in roughly {timespan.Humanize(precision: 10, minUnit: TimeUnit.Millisecond)}", true);
|
||||||
while (sent.Status != SentMessageTrackerStatus.ResponseReceived)
|
while (sent.Status != SentMessageTrackerStatus.ResponseReceived)
|
||||||
{
|
{
|
||||||
await Task.Delay(250, ctx);
|
await Task.Delay(250, ctx);
|
||||||
@@ -238,7 +238,7 @@ public class NextPoVisitCommand : ICommand
|
|||||||
await Task.Delay(1000, ctx);
|
await Task.Delay(1000, ctx);
|
||||||
timespan = DateTimeOffset.Parse(time.Value) - DateTimeOffset.UtcNow;
|
timespan = DateTimeOffset.Parse(time.Value) - DateTimeOffset.UtcNow;
|
||||||
await botInstance.KfClient.EditMessageAsync(sent.ChatMessageId!.Value,
|
await botInstance.KfClient.EditMessageAsync(sent.ChatMessageId!.Value,
|
||||||
$"Bossman's next PO visit will be in roughly {timespan.Humanize(precision: 10, minUnit: TimeUnit.Millisecond)}");
|
$"Austin's next PO visit will be in roughly {timespan.Humanize(precision: 10, minUnit: TimeUnit.Millisecond)}");
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -316,7 +316,7 @@ public class JailCommand : ICommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var timespan = DateTimeOffset.UtcNow - DateTimeOffset.Parse(start.Value);
|
var timespan = DateTimeOffset.UtcNow - DateTimeOffset.Parse(start.Value);
|
||||||
await botInstance.SendChatMessageAsync($"Bossman has been in jail {timespan.Humanize(precision:5)}", true);
|
await botInstance.SendChatMessageAsync($"AustinGambles has been in jail {timespan.Humanize(precision:5)}", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -640,7 +640,7 @@ public class BotServices
|
|||||||
var payoutColor = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value;
|
var payoutColor = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value;
|
||||||
if (bet.Winnings < bet.Amount) payoutColor = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value;
|
if (bet.Winnings < bet.Amount) payoutColor = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value;
|
||||||
_chatBot.SendChatMessage(
|
_chatBot.SendChatMessage(
|
||||||
$"🚨🚨 CHIPS BROS 🚨🚨 Bossman just bet [plain]{bet.Amount:N} {bet.Currency!.ToUpper()} " +
|
$"🚨🚨 CHIPS BROS 🚨🚨 AustinGambles just bet [plain]{bet.Amount:N} {bet.Currency!.ToUpper()} " +
|
||||||
$"({bet.Amount * bet.CurrencyPrice:C}) which paid out [/plain][color={payoutColor}][plain]{bet.Winnings:N} {bet.Currency.ToUpper()} " +
|
$"({bet.Amount * bet.CurrencyPrice:C}) which paid out [/plain][color={payoutColor}][plain]{bet.Winnings:N} {bet.Currency.ToUpper()} " +
|
||||||
$"({bet.Winnings * bet.CurrencyPrice:C})[/plain][/color] [plain]({bet.Multiplier:N}x) on {bet.GameTitle}[/plain] 💰💰",
|
$"({bet.Winnings * bet.CurrencyPrice:C})[/plain][/color] [plain]({bet.Multiplier:N}x) on {bet.GameTitle}[/plain] 💰💰",
|
||||||
true);
|
true);
|
||||||
|
|||||||
Reference in New Issue
Block a user