Merge soundboard and airhorn, aliases, improve command formats

This commit is contained in:
Daniel Odendahl Jr
2018-07-02 00:46:07 +00:00
parent a96b8f1667
commit 0d453ff5e1
23 changed files with 11 additions and 52 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ module.exports = class WikihowCommand extends Command {
constructor(client) {
super(client, {
name: 'wikihow',
aliases: ['wikihow-article', 'how-to'],
aliases: ['wikihow-article', 'how-to', 'how'],
group: 'search',
memberName: 'wikihow',
description: 'Searches Wikihow for your query.',
@@ -15,7 +15,7 @@ module.exports = class WikihowCommand extends Command {
key: 'query',
prompt: 'What article would you like to search for?',
type: 'string',
parse: query => query.replace(/^(how to)/i, '')
parse: query => query.replace(/^((how )?to)/i, '')
}
]
});