mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
Meow
This commit is contained in:
@@ -36,6 +36,7 @@ client.registry
|
|||||||
.registerCommandsIn(path.join(__dirname, 'commands'));
|
.registerCommandsIn(path.join(__dirname, 'commands'));
|
||||||
|
|
||||||
client.dispatcher.addInhibitor(msg => {
|
client.dispatcher.addInhibitor(msg => {
|
||||||
|
if(msg.channel.type === 'dm') return false;
|
||||||
const role = msg.guild.settings.get('singleRole');
|
const role = msg.guild.settings.get('singleRole');
|
||||||
if(!role) return false;
|
if(!role) return false;
|
||||||
if(client.isOwner(msg.author)) return false;
|
if(client.isOwner(msg.author)) return false;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "18.1.0",
|
"version": "18.1.1",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user