Fixed prune @someone ? fixed temp 8ball?
This commit is contained in:
parent
586e21b1c1
commit
65cdc15cd7
@ -463,7 +463,7 @@ namespace NadekoBot.Modules.Administration
|
||||
{
|
||||
var channel = msg.Channel as ITextChannel;
|
||||
int limit = (count < 100) ? count : 100;
|
||||
var enumerable = (await msg.Channel.GetMessagesAsync(limit: limit));
|
||||
var enumerable = (await msg.Channel.GetMessagesAsync(limit: limit)).Where(m => m.Author == user);
|
||||
await msg.Channel.DeleteMessagesAsync(enumerable);
|
||||
}
|
||||
////todo owner only
|
||||
|
@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Modules.Administration
|
||||
{
|
||||
//todo DB
|
||||
public partial class Administration
|
||||
{
|
||||
[Group]
|
||||
|
@ -18,6 +18,7 @@ namespace NadekoBot.Modules.Games
|
||||
private IEnumerable<string> _8BallResponses;
|
||||
public Games(ILocalization loc, CommandService cmds, IBotConfiguration config, DiscordSocketClient client) : base(loc, cmds, config, client)
|
||||
{
|
||||
_8BallResponses = config.EightBallResponses;
|
||||
}
|
||||
|
||||
[LocalizedCommand, LocalizedDescription, LocalizedSummary]
|
||||
|
Loading…
Reference in New Issue
Block a user