mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-04 04:56:30 +03:00
Fix /ping not showing correct locale (#276)
yeah... --------- Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
cd75780582
commit
ecb92a318c
6 changed files with 17 additions and 17 deletions
|
@ -91,7 +91,7 @@ public class PingCommandGroup : CommandGroup
|
|||
}
|
||||
|
||||
var embed = new EmbedBuilder().WithSmallTitle(bot.GetTag(), bot)
|
||||
.WithTitle($"Sound{Random.Shared.Next(1, 4)}".Localized())
|
||||
.WithTitle($"Generic{Random.Shared.Next(1, 4)}".Localized())
|
||||
.WithDescription($"{latency:F0}{Messages.Milliseconds}")
|
||||
.WithColour(latency < 250 ? ColorsList.Green : latency < 500 ? ColorsList.Yellow : ColorsList.Red)
|
||||
.WithCurrentTimestamp()
|
||||
|
|
12
src/Messages.Designer.cs
generated
12
src/Messages.Designer.cs
generated
|
@ -66,21 +66,21 @@ namespace Octobot {
|
|||
}
|
||||
}
|
||||
|
||||
internal static string Loaded1 {
|
||||
internal static string Generic1 {
|
||||
get {
|
||||
return ResourceManager.GetString("Loaded1", resourceCulture);
|
||||
return ResourceManager.GetString("Generic1", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Loaded2 {
|
||||
internal static string Generic2 {
|
||||
get {
|
||||
return ResourceManager.GetString("Loaded2", resourceCulture);
|
||||
return ResourceManager.GetString("Generic2", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Loaded3 {
|
||||
internal static string Generic3 {
|
||||
get {
|
||||
return ResourceManager.GetString("Loaded3", resourceCulture);
|
||||
return ResourceManager.GetString("Generic3", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ public class GuildLoadedResponder : IResponder<IGuildCreate>
|
|||
var i = Random.Shared.Next(1, 4);
|
||||
|
||||
var embed = new EmbedBuilder().WithSmallTitle(bot.GetTag(), bot)
|
||||
.WithTitle($"Loaded{i}".Localized())
|
||||
.WithTitle($"Generic{i}".Localized())
|
||||
.WithDescription(Messages.Ready)
|
||||
.WithCurrentTimestamp()
|
||||
.WithColour(ColorsList.Blue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue