mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
/about: Show Discord bot username instead of hardcoded one (#230)
In this PR, I made it so that in the Author field instead of the hardcoded name was the name of the Discord bot. This was done to match the icon next to it in the same field. Replaces #224 --------- Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
74e32dee9b
commit
6688481093
4 changed files with 5 additions and 4 deletions
|
@ -400,7 +400,7 @@
|
||||||
<value>Octobot's source code</value>
|
<value>Octobot's source code</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutBot" xml:space="preserve">
|
<data name="AboutBot" xml:space="preserve">
|
||||||
<value>About Octobot</value>
|
<value>About {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
||||||
<value>developer & designer, Octobot's Wiki creator</value>
|
<value>developer & designer, Octobot's Wiki creator</value>
|
||||||
|
|
|
@ -400,7 +400,7 @@
|
||||||
<value>Исходный код Octobot</value>
|
<value>Исходный код Octobot</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutBot" xml:space="preserve">
|
<data name="AboutBot" xml:space="preserve">
|
||||||
<value>Об Octobot</value>
|
<value>О боте {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutDeveloper@neroduckale" xml:space="preserve">
|
<data name="AboutDeveloper@neroduckale" xml:space="preserve">
|
||||||
<value>разработчик</value>
|
<value>разработчик</value>
|
||||||
|
|
|
@ -400,7 +400,7 @@
|
||||||
<value>репа Octobot (тык)</value>
|
<value>репа Octobot (тык)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutBot" xml:space="preserve">
|
<data name="AboutBot" xml:space="preserve">
|
||||||
<value>немного об Octobot</value>
|
<value>немного об {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
||||||
<value>скучный девелопер + дизайнер создавший Octobot's Wiki</value>
|
<value>скучный девелопер + дизайнер создавший Octobot's Wiki</value>
|
||||||
|
|
|
@ -96,7 +96,8 @@ public class AboutCommandGroup : CommandGroup
|
||||||
builder.AppendBulletPointLine($"{tag} — {$"AboutDeveloper@{dev.Username}".Localized()}");
|
builder.AppendBulletPointLine($"{tag} — {$"AboutDeveloper@{dev.Username}".Localized()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
var embed = new EmbedBuilder().WithSmallTitle(Messages.AboutBot, bot)
|
var embed = new EmbedBuilder()
|
||||||
|
.WithSmallTitle(string.Format(Messages.AboutBot, bot.Username), bot)
|
||||||
.WithDescription(builder.ToString())
|
.WithDescription(builder.ToString())
|
||||||
.WithColour(ColorsList.Cyan)
|
.WithColour(ColorsList.Cyan)
|
||||||
.WithImageUrl("https://cdn.mctaylors.ru/octobot-banner.png")
|
.WithImageUrl("https://cdn.mctaylors.ru/octobot-banner.png")
|
||||||
|
|
Loading…
Reference in a new issue