Comparing version 1.0.4 to 1.0.5
10
index.js
@@ -76,3 +76,3 @@ /* | ||
{ | ||
if(typeof token != String || typeof prefix != String) return console.log(red(`[ERROR]: `)+`Please Enter Token and Prefix as a String!`); | ||
if(token != 'string' || prefix != 'string') return console.log(red(`[ERROR]: `)+`Please Enter Token and Prefix as a String!`); | ||
ClientData.prefix = prefix; | ||
@@ -96,5 +96,5 @@ ClientData.token = token; | ||
if(!NPMData.config) return console.log(red(`[ERROR]: `)+`Please config your application!`); | ||
if(typeof cmdName != String || typeof cmdName != Array) return console.log(red(`[ERROR]: `)+'Commands for load can be a string or an array only!'); | ||
if(cmdName != 'string' || cmdName != 'object') return console.log(red(`[ERROR]: `)+'Commands for load can be a string or an array only!'); | ||
if(typeof cmdName == String) | ||
if(cmdName == 'string') | ||
{ | ||
@@ -105,3 +105,3 @@ if(!Commands.includes(cmdName)) return console.log(red(`[ERROR]: `)+`${cmdName} not exist, please load a valid command!`); | ||
} | ||
else if(typeof cmdName == Array) | ||
else if(cmdName == 'object') | ||
{ | ||
@@ -118,3 +118,3 @@ cmdName.forEach(cmd => { | ||
{ | ||
if(!NPMData.config || !NPMData.command) return console.log(red(`[ERROR]: `)+`Please config your application and load at least one command!`); | ||
if(!NPMData.config || !NPMData.command) return console.log(red(`[ERROR]: `)+`Please config your application and load at least one command![SETUP ERROR]`); | ||
@@ -121,0 +121,0 @@ console.log(yellow(`[WARNING]:`)+` PLEASE NOT THAT YOUR ACCOUNT IS AT RISK`); |
{ | ||
"name": "discordsb", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "a Module For Creating Discord Self Bots", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7236