Merge branch 'v4' into v5

This commit is contained in:
Kwoth
2023-01-21 00:33:54 +01:00
5 changed files with 47 additions and 1 deletions

View File

@@ -434,6 +434,10 @@ public sealed class MedusaLoaderService : IMedusaLoaderService, IReadyExecutor,
else if (bp.ChannelPerm is { } cp)
cb.AddPrecondition(new BotPermAttribute(cp));
}
else if (ubp is bot_owner_onlyAttribute)
{
cb.AddPrecondition(new OwnerOnlyAttribute());
}
}
cb.WithPriority(cmd.Priority);

View File

@@ -88,6 +88,9 @@ public sealed class CurrencyService : ICurrencyService, INService
long amount,
TxData txData)
{
if (amount == 0)
return true;
var wallet = await GetWalletAsync(userId);
var result = await wallet.Take(amount, txData);
if(result)

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Services;
public sealed class StatsService : IStatsService, IReadyExecutor, INService
{
public const string BOT_VERSION = "4.3.10";
public const string BOT_VERSION = "4.3.11";
public string Author
=> "Kwoth#2452";