.masskill command added (bot owner only)
This commit is contained in:
@ -9,5 +9,6 @@ namespace NadekoBot.Core.Services.Database.Repositories
|
||||
long GetUserCurrency(ulong userId);
|
||||
bool TryUpdateState(ulong userId, long change);
|
||||
IEnumerable<Currency> GetTopRichest(int count, int skip);
|
||||
void RemoveFromMany(List<long> ids);
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,11 @@ namespace NadekoBot.Core.Services.Database.Repositories.Impl
|
||||
public long GetUserCurrency(ulong userId) =>
|
||||
GetOrCreate(userId).Amount;
|
||||
|
||||
public void RemoveFromMany(List<long> ids)
|
||||
{
|
||||
_set.RemoveRange(_set.Where(x => ids.Contains((long)x.UserId)));
|
||||
}
|
||||
|
||||
public bool TryUpdateState(ulong userId, long change)
|
||||
{
|
||||
var cur = GetOrCreate(userId);
|
||||
|
Reference in New Issue
Block a user