forked from Galactic/galactic-bot
added devOnly mode
This commit is contained in:
parent
64dec0ba93
commit
9dc82d0da1
@ -38,6 +38,7 @@ class DiscordClient extends Client {
|
|||||||
|
|
||||||
this._options = options;
|
this._options = options;
|
||||||
this._built = false;
|
this._built = false;
|
||||||
|
this._devOnly = options.devOnly;
|
||||||
|
|
||||||
//TODO: Default config for users and guilds.
|
//TODO: Default config for users and guilds.
|
||||||
this._defaultConfig = {};
|
this._defaultConfig = {};
|
||||||
|
@ -36,7 +36,7 @@ class CommandHandler extends Observer {
|
|||||||
|
|
||||||
async handleMessage(message) {
|
async handleMessage(message) {
|
||||||
|
|
||||||
if (!message.author.developer) return;
|
if (!message.author.developer && this.client._devOnly) return;
|
||||||
if(!this.client._built
|
if(!this.client._built
|
||||||
|| message.webhookID
|
|| message.webhookID
|
||||||
|| message.author.bot
|
|| message.author.bot
|
||||||
|
Loading…
Reference in New Issue
Block a user