mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Add /about command
This commit is contained in:
parent
3f957b375b
commit
3b3e313959
7 changed files with 1445 additions and 829 deletions
|
@ -75,6 +75,7 @@ public class Boyfriend {
|
||||||
.AddSingleton<UtilityService>()
|
.AddSingleton<UtilityService>()
|
||||||
.AddHostedService<GuildUpdateService>()
|
.AddHostedService<GuildUpdateService>()
|
||||||
.AddCommandTree()
|
.AddCommandTree()
|
||||||
|
.WithCommandGroup<AboutCommandGroup>()
|
||||||
.WithCommandGroup<BanCommandGroup>()
|
.WithCommandGroup<BanCommandGroup>()
|
||||||
.WithCommandGroup<ClearCommandGroup>()
|
.WithCommandGroup<ClearCommandGroup>()
|
||||||
.WithCommandGroup<KickCommandGroup>()
|
.WithCommandGroup<KickCommandGroup>()
|
||||||
|
|
79
Commands/AboutCommandGroup.cs
Normal file
79
Commands/AboutCommandGroup.cs
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Text;
|
||||||
|
using Boyfriend.Services.Data;
|
||||||
|
using Remora.Commands.Attributes;
|
||||||
|
using Remora.Commands.Groups;
|
||||||
|
using Remora.Discord.API.Abstractions.Rest;
|
||||||
|
using Remora.Discord.Commands.Contexts;
|
||||||
|
using Remora.Discord.Commands.Feedback.Services;
|
||||||
|
using Remora.Discord.Extensions.Embeds;
|
||||||
|
using Remora.Discord.Extensions.Formatting;
|
||||||
|
using Remora.Results;
|
||||||
|
|
||||||
|
// ReSharper disable ClassNeverInstantiated.Global
|
||||||
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
|
namespace Boyfriend.Commands;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Handles the command to show information about this bot: /about
|
||||||
|
/// </summary>
|
||||||
|
public class AboutCommandGroup : CommandGroup {
|
||||||
|
private readonly ICommandContext _context;
|
||||||
|
private readonly GuildDataService _dataService;
|
||||||
|
private readonly FeedbackService _feedbackService;
|
||||||
|
private readonly IDiscordRestUserAPI _userApi;
|
||||||
|
|
||||||
|
public AboutCommandGroup(
|
||||||
|
ICommandContext context, GuildDataService dataService,
|
||||||
|
FeedbackService feedbackService, IDiscordRestUserAPI userApi) {
|
||||||
|
_context = context;
|
||||||
|
_dataService = dataService;
|
||||||
|
_feedbackService = feedbackService;
|
||||||
|
_userApi = userApi;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static readonly string[] Developers = { "Octol1ttle", "mctaylors", "neroduckale" };
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A slash command that shows information about this bot.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>
|
||||||
|
/// A feedback sending result which may or may not have succeeded.
|
||||||
|
/// </returns>
|
||||||
|
[Command("about")]
|
||||||
|
[Description("отображает список разработчиков")]
|
||||||
|
public async Task<Result> GetPingAsync() {
|
||||||
|
if (!_context.TryGetContextIDs(out var guildId, out _, out _))
|
||||||
|
return Result.FromError(
|
||||||
|
new ArgumentNullError(nameof(_context), "Unable to retrieve necessary IDs from command context"));
|
||||||
|
|
||||||
|
var currentUserResult = await _userApi.GetCurrentUserAsync(CancellationToken);
|
||||||
|
if (!currentUserResult.IsDefined(out var currentUser))
|
||||||
|
return Result.FromError(currentUserResult);
|
||||||
|
|
||||||
|
var cfg = await _dataService.GetConfiguration(guildId.Value);
|
||||||
|
Messages.Culture = cfg.GetCulture();
|
||||||
|
|
||||||
|
var builder = new StringBuilder().AppendLine(Markdown.Bold(Messages.AboutTitleDevelopers));
|
||||||
|
|
||||||
|
foreach (var dev in Developers) {
|
||||||
|
builder.Append($"@{dev} — ")
|
||||||
|
.AppendLine($"AboutDeveloper@{dev}".Localized());
|
||||||
|
}
|
||||||
|
builder.AppendLine()
|
||||||
|
.AppendLine(Markdown.Bold(Messages.AboutTitleWiki))
|
||||||
|
.AppendLine("https://github.com/TeamOctolings/Boyfriend/wiki");
|
||||||
|
|
||||||
|
var description = builder.ToString();
|
||||||
|
|
||||||
|
var embed = new EmbedBuilder().WithSmallTitle(Messages.AboutBot, currentUser)
|
||||||
|
.WithDescription(description)
|
||||||
|
.WithColour(ColorsList.Cyan)
|
||||||
|
.WithImageUrl("https://media.discordapp.net/attachments/837385840946053181/1125009665592393738/boyfriend.png")
|
||||||
|
.Build();
|
||||||
|
if (!embed.IsDefined(out var built)) return Result.FromError(embed);
|
||||||
|
|
||||||
|
return (Result)await _feedbackService.SendContextualEmbedAsync(built, ct: CancellationToken);
|
||||||
|
}
|
||||||
|
}
|
|
@ -36,6 +36,12 @@ public class PingCommandGroup : CommandGroup {
|
||||||
_userApi = userApi;
|
_userApi = userApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A slash command that shows time taken for the gateway to respond to the last heartbeat.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>
|
||||||
|
/// A feedback sending result which may or may not have succeeded.
|
||||||
|
/// </returns>
|
||||||
[Command("ping", "пинг")]
|
[Command("ping", "пинг")]
|
||||||
[Description("получает задержку")]
|
[Description("получает задержку")]
|
||||||
public async Task<Result> GetPingAsync() {
|
public async Task<Result> GetPingAsync() {
|
||||||
|
@ -60,12 +66,6 @@ public class PingCommandGroup : CommandGroup {
|
||||||
latency = DateTimeOffset.UtcNow.Subtract(lastMessage.Single().Timestamp).TotalMilliseconds;
|
latency = DateTimeOffset.UtcNow.Subtract(lastMessage.Single().Timestamp).TotalMilliseconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
// var embed = new EmbedBuilder().WithTitle($"Beep{Random.Shared.Next(1, 4)}".Localized())
|
|
||||||
// .WithDescription($"{latency:F0}{Messages.Milliseconds}")
|
|
||||||
// .WithColour(ColorsList.Green)
|
|
||||||
// .WithUserFooter(currentUser)
|
|
||||||
// .WithCurrentTimestamp()
|
|
||||||
// .Build();
|
|
||||||
var embed = new EmbedBuilder().WithSmallTitle(currentUser.GetTag(), currentUser)
|
var embed = new EmbedBuilder().WithSmallTitle(currentUser.GetTag(), currentUser)
|
||||||
.WithTitle($"Beep{Random.Shared.Next(1, 4)}".Localized())
|
.WithTitle($"Beep{Random.Shared.Next(1, 4)}".Localized())
|
||||||
.WithDescription($"{latency:F0}{Messages.Milliseconds}")
|
.WithDescription($"{latency:F0}{Messages.Milliseconds}")
|
||||||
|
|
1846
Messages.Designer.cs
generated
1846
Messages.Designer.cs
generated
File diff suppressed because it is too large
Load diff
112
Messages.resx
112
Messages.resx
|
@ -1,52 +1,52 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<!--
|
<!--
|
||||||
Microsoft ResX Schema
|
Microsoft ResX Schema
|
||||||
|
|
||||||
Version 2.0
|
Version 2.0
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
The primary goals of this format is to allow a simple XML format
|
||||||
that is mostly human readable. The generation and parsing of the
|
that is mostly human readable. The generation and parsing of the
|
||||||
various data types are done through the TypeConverter classes
|
various data types are done through the TypeConverter classes
|
||||||
associated with the data types.
|
associated with the data types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
... ado.net/XML headers & schema ...
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
There are any number of "resheader" rows that contain simple
|
||||||
name/value pairs.
|
name/value pairs.
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
Each data row contains a name, and value. The row also contains a
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
text/value conversion through the TypeConverter architecture.
|
text/value conversion through the TypeConverter architecture.
|
||||||
Classes that don't support this are serialized and stored with the
|
Classes that don't support this are serialized and stored with the
|
||||||
mimetype set.
|
mimetype set.
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
The mimetype is used for serialized objects, and tells the
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
read any of the formats listed below.
|
read any of the formats listed below.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
value : The object must be serialized into a byte array
|
value : The object must be serialized into a byte array
|
||||||
: using a System.ComponentModel.TypeConverter
|
: using a System.ComponentModel.TypeConverter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
-->
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
@ -136,8 +136,8 @@
|
||||||
<value>You do not have permission to execute this command!</value>
|
<value>You do not have permission to execute this command!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereBanned" xml:space="preserve">
|
<data name="YouWereBanned" xml:space="preserve">
|
||||||
<value>You were banned</value>
|
<value>You were banned</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="PunishmentExpired" xml:space="preserve">
|
<data name="PunishmentExpired" xml:space="preserve">
|
||||||
<value>Punishment expired</value>
|
<value>Punishment expired</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -151,8 +151,8 @@
|
||||||
<value>Command help:</value>
|
<value>Command help:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereKicked" xml:space="preserve">
|
<data name="YouWereKicked" xml:space="preserve">
|
||||||
<value>You were kicked</value>
|
<value>You were kicked</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Milliseconds" xml:space="preserve">
|
<data name="Milliseconds" xml:space="preserve">
|
||||||
<value>ms</value>
|
<value>ms</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -256,8 +256,8 @@
|
||||||
<value>ever</value>
|
<value>ever</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessagesCleared" xml:space="preserve">
|
<data name="MessagesCleared" xml:space="preserve">
|
||||||
<value>Cleared {0} messages</value>
|
<value>Cleared {0} messages</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FeedbackMemberKicked" xml:space="preserve">
|
<data name="FeedbackMemberKicked" xml:space="preserve">
|
||||||
<value>Kicked {0}: {1}</value>
|
<value>Kicked {0}: {1}</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -511,12 +511,30 @@
|
||||||
<value>Reason: {0}</value>
|
<value>Reason: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
||||||
<value>Expires at: {0}</value>
|
<value>Expires at: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="UserAlreadyMuted" xml:space="preserve">
|
<data name="UserAlreadyMuted" xml:space="preserve">
|
||||||
<value>This user is already muted!</value>
|
<value>This user is already muted!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessageFrom" xml:space="preserve">
|
<data name="MessageFrom" xml:space="preserve">
|
||||||
<value>From {0}:</value>
|
<value>From {0}:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="AboutTitleDevelopers" xml:space="preserve">
|
||||||
|
<value>Developers:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutTitleWiki" xml:space="preserve">
|
||||||
|
<value>Boyfriend's Wiki Page:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutBot" xml:space="preserve">
|
||||||
|
<value>About Boyfriend</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
||||||
|
<value>logo and embed designer, Boyfriend's Wiki creator</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@Octol1ttle" xml:space="preserve">
|
||||||
|
<value>main developer</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@neroduckale" xml:space="preserve">
|
||||||
|
<value>developer</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
112
Messages.ru.resx
112
Messages.ru.resx
|
@ -1,52 +1,52 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<!--
|
<!--
|
||||||
Microsoft ResX Schema
|
Microsoft ResX Schema
|
||||||
|
|
||||||
Version 2.0
|
Version 2.0
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
The primary goals of this format is to allow a simple XML format
|
||||||
that is mostly human readable. The generation and parsing of the
|
that is mostly human readable. The generation and parsing of the
|
||||||
various data types are done through the TypeConverter classes
|
various data types are done through the TypeConverter classes
|
||||||
associated with the data types.
|
associated with the data types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
... ado.net/XML headers & schema ...
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
There are any number of "resheader" rows that contain simple
|
||||||
name/value pairs.
|
name/value pairs.
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
Each data row contains a name, and value. The row also contains a
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
text/value conversion through the TypeConverter architecture.
|
text/value conversion through the TypeConverter architecture.
|
||||||
Classes that don't support this are serialized and stored with the
|
Classes that don't support this are serialized and stored with the
|
||||||
mimetype set.
|
mimetype set.
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
The mimetype is used for serialized objects, and tells the
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
read any of the formats listed below.
|
read any of the formats listed below.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
value : The object must be serialized into a byte array
|
value : The object must be serialized into a byte array
|
||||||
: using a System.ComponentModel.TypeConverter
|
: using a System.ComponentModel.TypeConverter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
-->
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
@ -148,8 +148,8 @@
|
||||||
<value>Справка по командам:</value>
|
<value>Справка по командам:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereKicked" xml:space="preserve">
|
<data name="YouWereKicked" xml:space="preserve">
|
||||||
<value>Вы были выгнаны</value>
|
<value>Вы были выгнаны</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Milliseconds" xml:space="preserve">
|
<data name="Milliseconds" xml:space="preserve">
|
||||||
<value>мс</value>
|
<value>мс</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -253,8 +253,8 @@
|
||||||
<value>всегда</value>
|
<value>всегда</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessagesCleared" xml:space="preserve">
|
<data name="MessagesCleared" xml:space="preserve">
|
||||||
<value>Очищено {0} сообщений</value>
|
<value>Очищено {0} сообщений</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FeedbackMemberKicked" xml:space="preserve">
|
<data name="FeedbackMemberKicked" xml:space="preserve">
|
||||||
<value>Выгнан {0}: {1}</value>
|
<value>Выгнан {0}: {1}</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -508,15 +508,33 @@
|
||||||
<value>Причина: {0}</value>
|
<value>Причина: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
||||||
<value>Закончится: {0}</value>
|
<value>Закончится: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="UserAlreadyMuted" xml:space="preserve">
|
<data name="UserAlreadyMuted" xml:space="preserve">
|
||||||
<value>Этот пользователь уже в муте!</value>
|
<value>Этот пользователь уже в муте!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereBanned" xml:space="preserve">
|
<data name="YouWereBanned" xml:space="preserve">
|
||||||
<value>Вы были забанены</value>
|
<value>Вы были забанены</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessageFrom" xml:space="preserve">
|
<data name="MessageFrom" xml:space="preserve">
|
||||||
<value>От {0}:</value>
|
<value>От {0}:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="AboutTitleDevelopers" xml:space="preserve">
|
||||||
|
<value>Разработчики:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutTitleWiki" xml:space="preserve">
|
||||||
|
<value>Страница Boyfriend's Wiki:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutBot" xml:space="preserve">
|
||||||
|
<value>О Boyfriend</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@neroduckale" xml:space="preserve">
|
||||||
|
<value>разрабочик</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@Octol1ttle" xml:space="preserve">
|
||||||
|
<value>основной разработчик</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
||||||
|
<value>дизайнер лого и эмбедов, создатель Boyfriend's Wiki</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -1,52 +1,52 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<root>
|
<root>
|
||||||
<!--
|
<!--
|
||||||
Microsoft ResX Schema
|
Microsoft ResX Schema
|
||||||
|
|
||||||
Version 2.0
|
Version 2.0
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
The primary goals of this format is to allow a simple XML format
|
||||||
that is mostly human readable. The generation and parsing of the
|
that is mostly human readable. The generation and parsing of the
|
||||||
various data types are done through the TypeConverter classes
|
various data types are done through the TypeConverter classes
|
||||||
associated with the data types.
|
associated with the data types.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
... ado.net/XML headers & schema ...
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
<resheader name="resmimetype">text/microsoft-resx</resheader><resheader name="version">2.0</resheader><resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader><resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader><data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data><data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data><data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"><value>[base64 mime encoded serialized .NET Framework object]</value></data><data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"><value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value><comment>This is a comment</comment></data>
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
There are any number of "resheader" rows that contain simple
|
||||||
name/value pairs.
|
name/value pairs.
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
Each data row contains a name, and value. The row also contains a
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
text/value conversion through the TypeConverter architecture.
|
text/value conversion through the TypeConverter architecture.
|
||||||
Classes that don't support this are serialized and stored with the
|
Classes that don't support this are serialized and stored with the
|
||||||
mimetype set.
|
mimetype set.
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
The mimetype is used for serialized objects, and tells the
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
read any of the formats listed below.
|
read any of the formats listed below.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
value : The object must be serialized with
|
value : The object must be serialized with
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
value : The object must be serialized into a byte array
|
value : The object must be serialized into a byte array
|
||||||
: using a System.ComponentModel.TypeConverter
|
: using a System.ComponentModel.TypeConverter
|
||||||
: and then encoded with base64 encoding.
|
: and then encoded with base64 encoding.
|
||||||
-->
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
@ -136,8 +136,8 @@
|
||||||
<value>у тебя прав нету, твои проблемы.</value>
|
<value>у тебя прав нету, твои проблемы.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereBanned" xml:space="preserve">
|
<data name="YouWereBanned" xml:space="preserve">
|
||||||
<value>вы были забанены</value>
|
<value>вы были забанены</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="PunishmentExpired" xml:space="preserve">
|
<data name="PunishmentExpired" xml:space="preserve">
|
||||||
<value>время бана закончиловсь</value>
|
<value>время бана закончиловсь</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -151,8 +151,8 @@
|
||||||
<value>туториал по приколам:</value>
|
<value>туториал по приколам:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="YouWereKicked" xml:space="preserve">
|
<data name="YouWereKicked" xml:space="preserve">
|
||||||
<value>вы были кикнуты</value>
|
<value>вы были кикнуты</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Milliseconds" xml:space="preserve">
|
<data name="Milliseconds" xml:space="preserve">
|
||||||
<value>мс</value>
|
<value>мс</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -256,8 +256,8 @@
|
||||||
<value>всегда</value>
|
<value>всегда</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessagesCleared" xml:space="preserve">
|
<data name="MessagesCleared" xml:space="preserve">
|
||||||
<value>вырезано {0} забавных сообщений</value>
|
<value>вырезано {0} забавных сообщений</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FeedbackMemberKicked" xml:space="preserve">
|
<data name="FeedbackMemberKicked" xml:space="preserve">
|
||||||
<value>выгнан {0}: {1}</value>
|
<value>выгнан {0}: {1}</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -511,12 +511,30 @@
|
||||||
<value>причина: {0}</value>
|
<value>причина: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
<data name="DescriptionActionExpiresAt" xml:space="preserve">
|
||||||
<value>до: {0}</value>
|
<value>до: {0}</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="UserAlreadyMuted" xml:space="preserve">
|
<data name="UserAlreadyMuted" xml:space="preserve">
|
||||||
<value>этот шизоид УЖЕ замучился</value>
|
<value>этот шизоид УЖЕ замучился</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MessageFrom" xml:space="preserve">
|
<data name="MessageFrom" xml:space="preserve">
|
||||||
<value>от {0}</value>
|
<value>от {0}</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="AboutTitleDevelopers" xml:space="preserve">
|
||||||
|
<value>девелоперы:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutTitleWiki" xml:space="preserve">
|
||||||
|
<value>страничка Boyfriend's Wiki:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutBot" xml:space="preserve">
|
||||||
|
<value>немного о Boyfriend</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@mctaylors" xml:space="preserve">
|
||||||
|
<value>скучный лого/эмбед дизайнер создавший Boyfriend's Wiki</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@neroduckale" xml:space="preserve">
|
||||||
|
<value>ВАЖНЫЙ соучастник кодинг-стримов @Octol1ttle</value>
|
||||||
|
</data>
|
||||||
|
<data name="AboutDeveloper@Octol1ttle" xml:space="preserve">
|
||||||
|
<value>САМЫЙ ВАЖНЫЙ чел написавший кода больше всех (99.99%)</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
Loading…
Add table
Reference in a new issue