mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Merge branch 'v4' into v5
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
@@ -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) 
 | 
			
		||||
 
 | 
			
		||||
@@ -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";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user