From 6eec8039cb53bc21c75c8482d55c91c0cf3d3c9d Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 5 May 2017 12:34:59 +0000 Subject: [PATCH] Meow --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ad192f63..f6a9e14a 100644 --- a/index.js +++ b/index.js @@ -36,6 +36,7 @@ client.registry .registerCommandsIn(path.join(__dirname, 'commands')); client.dispatcher.addInhibitor(msg => { + if(msg.channel.type === 'dm') return false; const role = msg.guild.settings.get('singleRole'); if(!role) return false; if(client.isOwner(msg.author)) return false; diff --git a/package.json b/package.json index f840aeb5..bfa5566c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "18.1.0", + "version": "18.1.1", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {