diff --git a/src/Commands/Hello.js b/src/Commands/Hello.js index 518bb53..42e036b 100644 --- a/src/Commands/Hello.js +++ b/src/Commands/Hello.js @@ -1,13 +1,15 @@ -const Command = require("./../Structures/Command.js"); +const Command = require('./../Structures/Command.js'); module.exports = class extends Command { - constructor(...args) { - super(...args, { - aliases: ["hallo"] - }) - } - async run(message, args) { - message.channel.send("Hello"); - } -} + constructor(...args) { + super(...args, { + aliases: ['hallo'] + }); + } + + async run(message, args) { + message.channel.send('Hello'); + } + +}; diff --git a/src/Commands/Utilities/Uptime.js b/src/Commands/Utilities/Uptime.js index 94bb73a..0652a5f 100644 --- a/src/Commands/Utilities/Uptime.js +++ b/src/Commands/Utilities/Uptime.js @@ -1,10 +1,10 @@ -const Command = require("../../Structures/Command.js"); -const ms = require("ms"); +const Command = require('../../Structures/Command.js'); +const ms = require('ms'); module.exports = class extends Command { - async run(message) { - message.channel.send(`My uptime is \`${ms(this.client.uptime, {long: true})}\``); - } + async run(message) { + message.channel.send(`My uptime is \`${ms(this.client.uptime, { long: true })}\``); + } -} +}; diff --git a/src/Structures/Command.js b/src/Structures/Command.js index 0a9fc3b..95195b1 100644 --- a/src/Structures/Command.js +++ b/src/Structures/Command.js @@ -1,15 +1,17 @@ module.exports = class Command { - constructor(client, name, options = {}) { - this.client = client; - this.name = options.name || name; - this.aliases = options.aliases || []; - this.description = options.description || "No description provided."; - this.category = options.category || "Miscellaneous"; - this.usage = options.usage || "No usage provided."; - } - // eslint-disable-next-line no-unused-vars - async run(message, args) { - throw new Error(`Command ${this.name} doesn't provide a run method.`) - } -} + constructor(client, name, options = {}) { + this.client = client; + this.name = options.name || name; + this.aliases = options.aliases || []; + this.description = options.description || 'No description provided.'; + this.category = options.category || 'Miscellaneous'; + this.usage = options.usage || 'No usage provided.'; + } + + // eslint-disable-next-line no-unused-vars + async run(message, args) { + throw new Error(`Command ${this.name} doesn't provide a run method.`); + } + +};