emojis and few other changes

This commit is contained in:
samvaio 2016-11-22 01:14:12 +05:30 committed by GitHub
parent 8d954e5050
commit b403e804ff

View File

@ -97,7 +97,7 @@ namespace NadekoBot.Modules.Administration
if (RatelimitingChannels.TryRemove(channel.Id, out throwaway))
{
throwaway.cancelSource.Cancel();
await channel.SendMessageAsync("`Slow mode disabled.`").ConfigureAwait(false);
await channel.SendMessageAsync(" **Slow mode disabled.**").ConfigureAwait(false);
return;
}
}
@ -112,7 +112,7 @@ namespace NadekoBot.Modules.Administration
if (msg < 1 || perSec < 1 || msg > 100 || perSec > 3600)
{
await channel.SendMessageAsync("`Invalid parameters.`");
await channel.SendMessageAsync("⚠️ `Invalid parameters.`");
return;
}
var toAdd = new Ratelimiter()
@ -123,11 +123,11 @@ namespace NadekoBot.Modules.Administration
};
if(RatelimitingChannels.TryAdd(channel.Id, toAdd))
{
await channel.SendMessageAsync("`Slow mode initiated.` " +
$"Users can't send more than {toAdd.MaxMessages} message(s) every {toAdd.PerSeconds} second(s).")
await channel.SendMessageAsync("✅ **Slow mode initiated: " +
$"Users can't send more than `{toAdd.MaxMessages} message(s)` every `{toAdd.PerSeconds} second(s)`.**")
.ConfigureAwait(false);
}
}
}
}
}
}