mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-13 17:26:08 +03:00
Add "contact developers" footer
Signed-off-by: mctaylors <mctaylxrs@outlook.com>
This commit is contained in:
parent
2072c347cd
commit
07d8971f06
5 changed files with 18 additions and 0 deletions
|
@ -573,4 +573,7 @@
|
||||||
<data name="CommandExecutionFailed" xml:space="preserve">
|
<data name="CommandExecutionFailed" xml:space="preserve">
|
||||||
<value>An error occurred during command execution, try again later.</value>
|
<value>An error occurred during command execution, try again later.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ContactDevelopers" xml:space="preserve">
|
||||||
|
<value>Contact the developers if the problem occurs again.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -573,4 +573,7 @@
|
||||||
<data name="CommandExecutionFailed" xml:space="preserve">
|
<data name="CommandExecutionFailed" xml:space="preserve">
|
||||||
<value>Произошла ошибка при выполнении команды, повтори попытку позже.</value>
|
<value>Произошла ошибка при выполнении команды, повтори попытку позже.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ContactDevelopers" xml:space="preserve">
|
||||||
|
<value>Обратитесь к разработчикам, если проблема возникнет снова.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -573,4 +573,7 @@
|
||||||
<data name="CommandExecutionFailed" xml:space="preserve">
|
<data name="CommandExecutionFailed" xml:space="preserve">
|
||||||
<value>произошёл тотальный разнос в команде, удачи.</value>
|
<value>произошёл тотальный разнос в команде, удачи.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ContactDevelopers" xml:space="preserve">
|
||||||
|
<value>если ты это читаешь второй раз за сегодня, пиши разрабам</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -61,6 +61,7 @@ public class ErrorLoggingPostExecutionEvent : IPostExecutionEvent
|
||||||
|
|
||||||
var embed = new EmbedBuilder().WithSmallTitle(Messages.CommandExecutionFailed, bot)
|
var embed = new EmbedBuilder().WithSmallTitle(Messages.CommandExecutionFailed, bot)
|
||||||
.WithDescription(Markdown.InlineCode(result.Error.Message))
|
.WithDescription(Markdown.InlineCode(result.Error.Message))
|
||||||
|
.WithFooter(Messages.ContactDevelopers)
|
||||||
.WithColour(ColorsList.Red)
|
.WithColour(ColorsList.Red)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
8
src/Messages.Designer.cs
generated
8
src/Messages.Designer.cs
generated
|
@ -1004,5 +1004,13 @@ namespace Octobot {
|
||||||
return ResourceManager.GetString("CommandExecutionFailed", resourceCulture);
|
return ResourceManager.GetString("CommandExecutionFailed", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static string ContactDevelopers
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ResourceManager.GetString("ContactDevelopers", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue