forked from TeamInklings/Octobot
Pre-Wiki Update (#285)
This PR has been opened to finally update Octobot's Wiki. Current changes summary: - correct minor spelling issues in some command descriptions - /about: add Octobot's Wiki button --------- Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
e0232f6008
commit
ac8621a2ec
8 changed files with 28 additions and 4 deletions
|
@ -672,4 +672,7 @@
|
|||
<data name="ButtonDirty" xml:space="preserve">
|
||||
<value>Can't report an issue in the development version</value>
|
||||
</data>
|
||||
<data name="ButtonOpenWiki" xml:space="preserve">
|
||||
<value>Open Octobot's Wiki</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
|
@ -672,4 +672,7 @@
|
|||
<data name="ButtonDirty" xml:space="preserve">
|
||||
<value>Нельзя сообщить о проблеме в версии под разработкой</value>
|
||||
</data>
|
||||
<data name="ButtonOpenWiki" xml:space="preserve">
|
||||
<value>Открыть Octobot's Wiki</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
|
@ -672,4 +672,7 @@
|
|||
<data name="ButtonDirty" xml:space="preserve">
|
||||
<value>вот иди сам и почини что сломал</value>
|
||||
</data>
|
||||
<data name="ButtonOpenWiki" xml:space="preserve">
|
||||
<value>вики Octobot (жмак)</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
|
@ -6,6 +6,8 @@ public static class BuildInfo
|
|||
|
||||
public static string IssuesUrl => $"{RepositoryUrl}/issues";
|
||||
|
||||
public static string WikiUrl => $"{RepositoryUrl}/wiki";
|
||||
|
||||
private static string Commit => ThisAssembly.Git.Commit;
|
||||
|
||||
private static string Branch => ThisAssembly.Git.Branch;
|
||||
|
|
|
@ -111,6 +111,13 @@ public class AboutCommandGroup : CommandGroup
|
|||
URL: BuildInfo.RepositoryUrl
|
||||
);
|
||||
|
||||
var wikiButton = new ButtonComponent(
|
||||
ButtonComponentStyle.Link,
|
||||
Messages.ButtonOpenWiki,
|
||||
new PartialEmoji(Name: "📖"),
|
||||
URL: BuildInfo.WikiUrl
|
||||
);
|
||||
|
||||
var issuesButton = new ButtonComponent(
|
||||
ButtonComponentStyle.Link,
|
||||
BuildInfo.IsDirty
|
||||
|
@ -124,7 +131,7 @@ public class AboutCommandGroup : CommandGroup
|
|||
return await _feedback.SendContextualEmbedResultAsync(embed,
|
||||
new FeedbackMessageOptions(MessageComponents: new[]
|
||||
{
|
||||
new ActionRowComponent(new[] { repositoryButton, issuesButton })
|
||||
new ActionRowComponent(new[] { repositoryButton, wikiButton, issuesButton })
|
||||
}), ct);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -241,7 +241,7 @@ public class SettingsCommandGroup : CommandGroup
|
|||
[DiscordDefaultDMPermission(false)]
|
||||
[RequireContext(ChannelContext.Guild)]
|
||||
[RequireDiscordPermission(DiscordPermission.ManageGuild)]
|
||||
[Description("Reset settings for this server")]
|
||||
[Description("Reset settings for this guild")]
|
||||
[UsedImplicitly]
|
||||
public async Task<Result> ExecuteResetSettingsAsync(
|
||||
[Description("Setting to reset")] AllOptionsEnum? setting = null)
|
||||
|
|
|
@ -262,7 +262,7 @@ public class ToolsCommandGroup : CommandGroup
|
|||
/// </returns>
|
||||
[Command("guildinfo")]
|
||||
[DiscordDefaultDMPermission(false)]
|
||||
[Description("Shows info current guild")]
|
||||
[Description("Shows info about current guild")]
|
||||
[UsedImplicitly]
|
||||
public async Task<Result> ExecuteGuildInfoAsync()
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ public class ToolsCommandGroup : CommandGroup
|
|||
[UsedImplicitly]
|
||||
public async Task<Result> ExecuteEightBallAsync(
|
||||
// let the user think he's actually asking the ball a question
|
||||
string question)
|
||||
[Description("Question to ask")] string question)
|
||||
{
|
||||
if (!_context.TryGetContextIDs(out var guildId, out _, out _))
|
||||
{
|
||||
|
|
6
src/Messages.Designer.cs
generated
6
src/Messages.Designer.cs
generated
|
@ -1210,5 +1210,11 @@ namespace Octobot {
|
|||
return ResourceManager.GetString("ButtonDirty", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string ButtonOpenWiki {
|
||||
get {
|
||||
return ResourceManager.GetString("ButtonOpenWiki", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue