Fixed prune @someone ? fixed temp 8ball?

This commit is contained in:
Kwoth 2016-08-20 22:55:45 +02:00
parent 586e21b1c1
commit 65cdc15cd7
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
namespace NadekoBot.Modules.Administration
{
//todo DB
public partial class Administration
{
[Group]

View File

@ -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]