Minor issue fixes

This commit is contained in:
Octol1ttle 2022-12-21 11:52:09 +05:00
parent f175544211
commit f0a6c8faff
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
6 changed files with 8 additions and 8 deletions

View file

@ -21,12 +21,13 @@ public static class Boyfriend {
};
private static readonly List<Tuple<Game, TimeSpan>> ActivityList = new() {
Tuple.Create(new Game("Masayoshi Minoshima (ft. nomico) - Bad Apple!!", ActivityType.Listening), new TimeSpan(0, 3, 40)),
Tuple.Create(new Game("Masayoshi Minoshima (ft. nomico) - Bad Apple!!", ActivityType.Listening),
new TimeSpan(0, 3, 40)),
Tuple.Create(new Game("Xi - Blue Zenith", ActivityType.Listening), new TimeSpan(0, 4, 16)),
Tuple.Create(new Game("Kurokotei - Scattered Faith", ActivityType.Listening), new TimeSpan(0, 8, 21)),
Tuple.Create(new Game("Splatoon 3 - Candy-Coated Rocks", ActivityType.Listening), new TimeSpan(0, 2, 39)),
Tuple.Create(new Game("RetroSpecter - Genocide", ActivityType.Listening), new TimeSpan(0, 5, 52)),
Tuple.Create(new Game("Dimrain47 - At the Speed of Light", ActivityType.Listening), new TimeSpan(0, 4, 10))
Tuple.Create(new Game("beatMARIO - Night of Knights", ActivityType.Listening), new TimeSpan(0, 4, 10))
};
public static readonly DiscordSocketClient Client = new(Config);

View file

@ -1,7 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -376,7 +375,7 @@ namespace Boyfriend {
}
/// <summary>
/// Looks up a localized string similar to Event {0} has completed! Duration: {1}.
/// Looks up a localized string similar to Event {0} has completed! Duration:{1}.
/// </summary>
internal static string EventCompleted {
get {

View file

@ -274,7 +274,7 @@
<value>Event {0} is cancelled!{1}</value>
</data>
<data name="EventCompleted" xml:space="preserve">
<value>Event {0} has completed! Duration: {1}</value>
<value>Event {0} has completed! Duration:{1}</value>
</data>
<data name="Ever" xml:space="preserve">
<value>ever</value>

View file

@ -274,7 +274,7 @@
<value>Событие {0} отменено!{1}</value>
</data>
<data name="EventCompleted" xml:space="preserve">
<value>Событие {0} завершено! Продолжительность: {1}</value>
<value>Событие {0} завершено! Продолжительность:{1}</value>
</data>
<data name="Ever" xml:space="preserve">
<value>всегда</value>

View file

@ -274,7 +274,7 @@
<value>квест {0} отменен!{1}</value>
</data>
<data name="EventCompleted" xml:space="preserve">
<value>квест {0} завершен! все это длилось {1}</value>
<value>квест {0} завершен! все это длилось{1}</value>
</data>
<data name="Ever" xml:space="preserve">
<value>всегда</value>

View file

@ -119,7 +119,7 @@ public static partial class Utils {
public static string GetHumanizedTimeOffset(TimeSpan span) {
return span.TotalSeconds > 0
? $" {span.Humanize(2, minUnit: TimeUnit.Second, maxUnit: TimeUnit.Month, culture: Messages.Culture)}"
? $" {span.Humanize(2, minUnit: TimeUnit.Second, maxUnit: TimeUnit.Month, culture: Messages.Culture.Name.Contains("RU") ? CultureInfoCache["ru"] : Messages.Culture)}"
: Messages.Ever;
}