Cleaned up around xp.yml. Fixed a typo, added an error to .xpshop if the feature is disabled.

This commit is contained in:
Kwoth
2022-07-27 03:56:10 +02:00
parent 25fce1bd75
commit 22bff7838a
6 changed files with 75 additions and 5 deletions

View File

@@ -347,6 +347,12 @@ public partial class Xp : NadekoModule<XpService>
[Cmd]
public async Task XpShop()
{
if (!_service.IsShopEnabled())
{
await ReplyErrorLocalizedAsync(strs.xp_shop_disabled);
return;
}
await SendConfirmAsync(GetText(strs.available_commands), $@"`{prefix}xpshop bgs`
`{prefix}xpshop frames`");
}