diff --git a/README.md b/README.md index e759c1a0..f0bb3524 100644 --- a/README.md +++ b/README.md @@ -376,6 +376,7 @@ Total: 513 ### Single Response: +* **can-you-not:** Can YOU not? * **cave:** Sends a Minecraft cave that blends in with the chat. * **dark-light:** Determines whether you use dark or light theme. * **eat-pant:** Eat pant. @@ -397,7 +398,6 @@ Total: 513 ### Automatic Response: -* **can-you-not:** Can YOU not? * **no-u:** no u * **unflip:** Unflips a flipped table. @@ -819,11 +819,8 @@ nonetheless. - Leave messages are automatically sent to any channel that recieves welcome messages. These can be turned off with [an option](#options). - In Xiao's home server, Xiao posts a random meme from Reddit every hour using a webhook. - Some commands will automatically run when a certain phrase is said in any message, regardless of if the command itself was called or not. These are: - * Saying "can you not" or "can u not" runs `can-you-not`. * Saying "no u" runs `no-u`. * Saying "(╯°□°)╯︵ ┻━┻" runs `unflip`. - * Saying "r/subredditnamehere" runs `subreddit`. Obviously, replace "subbreditnamehere" with the name of the subreddit. - * Starting a message with "clevs" or "cleverbot" runs `cleverbot` using the text after either word as the text. ## Licensing diff --git a/commands/other/cleverbot.js b/commands/other/cleverbot.js index 940bc160..b9508b8a 100644 --- a/commands/other/cleverbot.js +++ b/commands/other/cleverbot.js @@ -27,8 +27,7 @@ module.exports = class CleverbotCommand extends Command { prompt: 'What do you want to say to Cleverbot?', type: 'string' } - ], - patterns: [/^(clevs|cleverbot) (.+)/i] + ] }); this.convos = new Map(); diff --git a/commands/random-res/subreddit.js b/commands/random-res/subreddit.js index 263f518f..aac20d77 100644 --- a/commands/random-res/subreddit.js +++ b/commands/random-res/subreddit.js @@ -9,7 +9,6 @@ module.exports = class SubredditCommand extends SubredditCommandBase { memberName: 'subreddit', description: 'Responds with a random post from a subreddit.', clientPermissions: ['EMBED_LINKS'], - patterns: [/^r\/(.+)/i], getIcon: true, args: [ { diff --git a/commands/auto/can-you-not.js b/commands/single/can-you-not.js similarity index 56% rename from commands/auto/can-you-not.js rename to commands/single/can-you-not.js index 6d9b9a66..cdc82eb2 100644 --- a/commands/auto/can-you-not.js +++ b/commands/single/can-you-not.js @@ -1,19 +1,17 @@ -const Command = require('../../structures/commands/AutoReply'); +const Command = require('../../structures/Command'); module.exports = class CanYouNotCommand extends Command { constructor(client) { super(client, { name: 'can-you-not', aliases: ['can-u-not'], - group: 'auto', + group: 'single', memberName: 'can-you-not', description: 'Can YOU not?', - patterns: [/can (you|u) not/i], - reply: true }); } - generateText() { - return 'Can YOU not?'; + run(msg) { + return msg.say('Can YOU not?'); } }; diff --git a/package.json b/package.json index 2777b92b..3aab96f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "118.0.0", + "version": "119.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {