build CI fixes
parent
c88d4cd9ad
commit
eafcdf1cf6
|
@ -19,7 +19,7 @@ export default class CWG_Data extends Command {
|
||||||
public async run(message: Message, args: string[]) {
|
public async run(message: Message, args: string[]) {
|
||||||
try {
|
try {
|
||||||
if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]);
|
if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]);
|
||||||
const dom = await this.client.db.Domain.find({ $or: [{ domain: args[0] }, { port: Number(args[0]) || '' }] });
|
const dom = await this.client.db.Domain.find({ $or: [{ domain: args[0] }, { port: Number(args[0]) || 0 }] });
|
||||||
if (!dom.length) {
|
if (!dom.length) {
|
||||||
if (!Number.isNaN(Number(args[0]))) {
|
if (!Number.isNaN(Number(args[0]))) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue