mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
Minor issue fixes
This commit is contained in:
parent
f175544211
commit
f0a6c8faff
6 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
3
Boyfriend/Messages.Designer.cs
generated
3
Boyfriend/Messages.Designer.cs
generated
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue