mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 23:37:03 +00:00
more command aliases
This commit is contained in:
parent
9c38bee898
commit
e479772d4c
@ -172,7 +172,7 @@ namespace CompatBot.Commands
|
||||
}
|
||||
|
||||
|
||||
[Command("remove"), Aliases("delete", "del"), RequiresBotModRole]
|
||||
[Command("remove"), Aliases("delete", "del", "erase", "obliterate"), RequiresBotModRole]
|
||||
[Description("Removes an explanation from the definition list")]
|
||||
public async Task Remove(CommandContext ctx, [RemainingText, Description("Term to remove")] string term)
|
||||
{
|
||||
|
@ -41,9 +41,9 @@ namespace CompatBot.Commands
|
||||
}
|
||||
}
|
||||
|
||||
[Command("restart"), Aliases("update"), TriggersTyping]
|
||||
[Description("Restarts bot and pulls newest commit")]
|
||||
public async Task Restart(CommandContext ctx)
|
||||
[Command("update"), Aliases("upgrade", "restart", "reboot", "pull"), TriggersTyping]
|
||||
[Description("Restarts bot and pulls the newest commit")]
|
||||
public async Task Update(CommandContext ctx)
|
||||
{
|
||||
if (lockObj.Wait(0))
|
||||
{
|
||||
|
@ -10,7 +10,10 @@ namespace CompatBot.EventHandlers
|
||||
{
|
||||
internal static class BotShutupHandler
|
||||
{
|
||||
private static readonly AhoCorasickDoubleArrayTrie<string> ChillCheck = new AhoCorasickDoubleArrayTrie<string>(new[] { "shut the fuck up", "shut up", "shutup", "hush", "chill" }.ToDictionary(s => s, s => s), true);
|
||||
private static readonly AhoCorasickDoubleArrayTrie<string> ChillCheck = new AhoCorasickDoubleArrayTrie<string>(new[]
|
||||
{
|
||||
"shut the fuck up", "shut up", "shutup", "hush", "chill", "take that back", "delete this", "bad bot",
|
||||
}.ToDictionary(s => s, s => s), true);
|
||||
|
||||
public static async Task OnMessageCreated(MessageCreateEventArgs args)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user