1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 08:23:35 +03:00

/about: Add Octobot's description

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2023-12-18 02:32:56 +03:00
parent d4ea62d419
commit 4c3019a580
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1
6 changed files with 21 additions and 2 deletions

View file

@ -585,4 +585,7 @@
<data name="ButtonReportIssue" xml:space="preserve">
<value>Report an issue</value>
</data>
<data name="AboutBotDescription" xml:space="preserve">
<value>Veemo! I'm a general-purpose bot for moderation (formerly known as Boyfriend) written by [Labs Development Team]({0}) in C# and Remora.Discord.</value>
</data>
</root>

View file

@ -585,4 +585,7 @@
<data name="ButtonReportIssue" xml:space="preserve">
<value>Сообщить о проблеме</value>
</data>
<data name="AboutBotDescription" xml:space="preserve">
<value>Виимо! Я — бот общего назначения для модерации (ранее известный как Boyfriend), написанный [командой Labs Development]({0}) на C# и Remora.Discord.</value>
</data>
</root>

View file

@ -585,4 +585,7 @@
<data name="ButtonReportIssue" xml:space="preserve">
<value>зарепортить баг</value>
</data>
<data name="AboutBotDescription" xml:space="preserve">
<value>вииимо! звать меня Octobot (а в прошлом Boyfriend) и я бот который будет модерировать твой сервер. я написан [чуваками из Labs Development]({0}) на C# и Remora.Discord</value>
</data>
</root>

View file

@ -83,7 +83,8 @@ public class AboutCommandGroup : CommandGroup
private async Task<Result> SendAboutBotAsync(IUser bot, Snowflake guildId, CancellationToken ct = default)
{
var builder = new StringBuilder().Append("### ").AppendLine(Messages.AboutTitleDevelopers);
var builder = new StringBuilder().AppendLine(string.Format(Messages.AboutBotDescription, Octobot.OrganizationUrl))
.Append("### ").AppendLine(Messages.AboutTitleDevelopers);
foreach (var dev in Developers)
{
var guildMemberResult = await _guildApi.GetGuildMemberAsync(

View file

@ -1036,5 +1036,13 @@ namespace Octobot {
return ResourceManager.GetString("ButtonReportIssue", resourceCulture);
}
}
internal static string AboutBotDescription
{
get
{
return ResourceManager.GetString("AboutBotDescription", resourceCulture);
}
}
}
}

View file

@ -27,7 +27,8 @@ public sealed class Octobot
public static readonly AllowedMentions NoMentions = new(
Array.Empty<MentionType>(), Array.Empty<Snowflake>(), Array.Empty<Snowflake>());
public const string RepositoryUrl = "https://github.com/LabsDevelopment/Octobot";
public const string OrganizationUrl = "https://github.com/LabsDevelopment";
public const string RepositoryUrl = $"{OrganizationUrl}/Octobot";
public const string IssuesUrl = $"{RepositoryUrl}/issues";
public static async Task Main(string[] args)