mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Fixed ESLint errors.
This commit is contained in:
		
							parent
							
								
									49a5b5e3b7
								
							
						
					
					
						commit
						44c6dfab1b
					
				
					 3 changed files with 33 additions and 29 deletions
				
			
		|  | @ -1,13 +1,15 @@ | ||||||
| const Command = require("./../Structures/Command.js"); | const Command = require('./../Structures/Command.js'); | ||||||
| 
 | 
 | ||||||
| module.exports = class extends Command { | module.exports = class extends Command { | ||||||
|  | 
 | ||||||
| 	constructor(...args) { | 	constructor(...args) { | ||||||
| 		super(...args, { | 		super(...args, { | ||||||
|       aliases: ["hallo"] | 			aliases: ['hallo'] | ||||||
|     }) | 		}); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	async run(message, args) { | 	async run(message, args) { | ||||||
|     message.channel.send("Hello"); | 		message.channel.send('Hello'); | ||||||
| 	} | 	} | ||||||
| } | 
 | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | @ -1,10 +1,10 @@ | ||||||
| const Command = require("../../Structures/Command.js"); | const Command = require('../../Structures/Command.js'); | ||||||
| const ms = require("ms"); | const ms = require('ms'); | ||||||
| 
 | 
 | ||||||
| module.exports = class extends Command { | module.exports = class extends Command { | ||||||
| 
 | 
 | ||||||
| 	async run(message) { | 	async run(message) { | ||||||
|     message.channel.send(`My uptime is \`${ms(this.client.uptime, {long: true})}\``); | 		message.channel.send(`My uptime is \`${ms(this.client.uptime, { long: true })}\``); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| } | }; | ||||||
|  |  | ||||||
|  | @ -1,15 +1,17 @@ | ||||||
| module.exports = class Command { | module.exports = class Command { | ||||||
|  | 
 | ||||||
| 	constructor(client, name, options = {}) { | 	constructor(client, name, options = {}) { | ||||||
| 		this.client = client; | 		this.client = client; | ||||||
| 		this.name = options.name || name; | 		this.name = options.name || name; | ||||||
| 		this.aliases = options.aliases || []; | 		this.aliases = options.aliases || []; | ||||||
|     this.description = options.description || "No description provided."; | 		this.description = options.description || 'No description provided.'; | ||||||
|     this.category = options.category || "Miscellaneous"; | 		this.category = options.category || 'Miscellaneous'; | ||||||
|     this.usage = options.usage || "No usage provided."; | 		this.usage = options.usage || 'No usage provided.'; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// eslint-disable-next-line no-unused-vars
 | 	// eslint-disable-next-line no-unused-vars
 | ||||||
| 	async run(message, args) { | 	async run(message, args) { | ||||||
|     throw new Error(`Command ${this.name} doesn't provide a run method.`) | 		throw new Error(`Command ${this.name} doesn't provide a run method.`); | ||||||
| 	} | 	} | ||||||
| } | 
 | ||||||
|  | }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue