diff --git a/commands/ayunsudo.js b/commands/ayunsudo.js index b90cfdd..34edc77 100644 --- a/commands/ayunsudo.js +++ b/commands/ayunsudo.js @@ -5,10 +5,10 @@ module.exports = { description: 'Sudos everyone on Ayunboom!', trusted: 1, usage: ' ', - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.run(`essentials:sudo * ${args.slice(1).join(' ')}`) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { bot.core.run(`essentials:sudo * ${args.join(' ')}`) } } diff --git a/commands/botuser.js b/commands/botuser.js index 4b53d24..3ae4a55 100644 --- a/commands/botuser.js +++ b/commands/botuser.js @@ -6,10 +6,10 @@ module.exports = { description: 'Shows the bot\'s username and UUID', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.tellraw(selector, [{ text: 'The bot\'s username is: ', color: 'white' }, { text: `${bot.username}`, color: 'gold', clickEvent: { action: 'copy_to_clipboard', value: `${bot.username}` }, hoverEvent: { action: 'show_text', contents: [{ text: 'Click here to copy the username to your clipboard', color: 'green' }] } }, { text: ' and the UUID is: ' }, { text: `${bot.uuid}`, color: 'aqua', clickEvent: { action: 'copy_to_clipboard', value: `${bot.uuid}` }, hoverEvent: { action: 'show_text', contents: [{ text: 'Click here to copy the UUID to your clipboard', color: 'green' }] } }]) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { const Embed = new MessageEmbed() .setColor('#FFFF00') .setTitle('Bot\'s User') diff --git a/commands/botvisibility.js b/commands/botvisibility.js index cfab1cc..7572a27 100644 --- a/commands/botvisibility.js +++ b/commands/botvisibility.js @@ -10,7 +10,7 @@ module.exports = { '' ], trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[1] === 'true' || args[1] === 'on') { bot.visibility = true bot.chat('/essentials:vanish disable') @@ -30,7 +30,7 @@ module.exports = { throw new SyntaxError('Invalid argument') } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { if (args[0] === 'true' || args[0] === 'on') { bot.visibility = true bot.chat('/essentials:vanish disable') diff --git a/commands/bruhify.js b/commands/bruhify.js index 23a408c..28da198 100644 --- a/commands/bruhify.js +++ b/commands/bruhify.js @@ -6,10 +6,10 @@ module.exports = { description: 'RecycleBot bruhify but actionbar', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.bruhifyText = args.join(' ') }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { bot.bruhifyText = args.join(' ') const Embed = new MessageEmbed() .setColor('#FFFF00') diff --git a/commands/cb.js b/commands/cb.js index 88b0c1c..59a527c 100644 --- a/commands/cb.js +++ b/commands/cb.js @@ -5,10 +5,10 @@ module.exports = { description: 'Executes a command in the command core', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.run(args.join(' ')) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { bot.core.run(args.join(' ')) } } diff --git a/commands/changelog.js b/commands/changelog.js index 62c6c6f..bffd935 100644 --- a/commands/changelog.js +++ b/commands/changelog.js @@ -7,7 +7,7 @@ module.exports = { description: 'Shows the bot\'s changelog', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { const component = [] component.push({ text: 'Changelogs ', color: 'green' }) @@ -27,7 +27,7 @@ module.exports = { bot.tellraw(selector, component) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { let changelogs = '' changelog.forEach((message, number) => { number += 1 diff --git a/commands/clearchat.js b/commands/clearchat.js index 8c15680..2a866cb 100644 --- a/commands/clearchat.js +++ b/commands/clearchat.js @@ -6,14 +6,14 @@ module.exports = { description: 'Clears the chat', usage: '[specific] ', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0] === 'specific') { bot.tellraw(args[1], [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: `Your chat has been cleared by ${username}.`, color: 'dark_green' }]) } else { bot.tellraw('@a', [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: 'The chat has been cleared.', color: 'dark_green' }]) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { if (args[0] === 'specific') { bot.tellraw(args[1], [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: `Your chat has been cleared by ${username} (on Discord).`, color: 'dark_green' }]) } else { diff --git a/commands/clearchatqueue.js b/commands/clearchatqueue.js index 58000fe..3d9d101 100644 --- a/commands/clearchatqueue.js +++ b/commands/clearchatqueue.js @@ -5,12 +5,12 @@ module.exports = { alias: ['ccq'], usage: '', trusted: 0, - execute: function (bot) { + execute (bot) { if (bot.queue[0]) { bot.chatQueue = [] } }, - discordExecute: function (bot) { + discordExecute (bot) { if (bot.queue[0]) { bot.chatQueue = [] } diff --git a/commands/cloop.js b/commands/cloop.js index 36e1120..22255c6 100644 --- a/commands/cloop.js +++ b/commands/cloop.js @@ -66,7 +66,7 @@ module.exports = { ' ' ], trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (!bot.cloops) bot.cloops = [] if (args[1] === 'add' && args[3]) { if (!Number(args[2]) && Number(args[2]) !== 0) throw new SyntaxError('Invalid interval') @@ -84,7 +84,7 @@ module.exports = { throw new SyntaxError('Invalid argument') } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { if (!bot.cloops) bot.cloops = [] if (args[0] === 'add' && args[2]) { if (!Number(args[1]) && Number(args[1]) !== 0) throw new SyntaxError('Invalid interval') diff --git a/commands/cowsay.js b/commands/cowsay.js index 312efb0..74276c6 100644 --- a/commands/cowsay.js +++ b/commands/cowsay.js @@ -11,7 +11,7 @@ module.exports = { '' ], trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0] === 'list') { const listed = Object.keys(cows) @@ -34,7 +34,7 @@ module.exports = { bot.tellraw(selector, { text: cowsay.say(args.slice(1).join(' '), { cow: cows[args[0]] }) }) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { const Embed = new MessageEmbed() .setColor('#FFFF00') .setTitle('Cowsay') diff --git a/commands/crashserver.js b/commands/crashserver.js index 0541781..8995b34 100644 --- a/commands/crashserver.js +++ b/commands/crashserver.js @@ -19,10 +19,10 @@ module.exports = { description: 'Crashes the server', usage: '', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { crash(bot) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { crash(bot) } } diff --git a/commands/creator.js b/commands/creator.js index 16e2ade..d71166c 100644 --- a/commands/creator.js +++ b/commands/creator.js @@ -6,10 +6,10 @@ module.exports = { description: 'Shows the bot\'s creator', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.tellraw(selector, [{ text: 'ChomeNS Bot ', color: 'yellow' }, { text: 'was created by ', color: 'white' }, { text: 'chayapak', color: 'gold' }]) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { const Embed = new MessageEmbed() .setColor('#FFFF00') .setTitle('Creator') diff --git a/commands/discord.js b/commands/discord.js index 8f3a909..c60123e 100644 --- a/commands/discord.js +++ b/commands/discord.js @@ -5,7 +5,7 @@ module.exports = { description: 'Shows the discord invite', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.tellraw(selector, [ { text: 'The Discord invite is ', diff --git a/commands/eaglercrash.js b/commands/eaglercrash.js index 892857a..9aacb1e 100644 --- a/commands/eaglercrash.js +++ b/commands/eaglercrash.js @@ -5,7 +5,7 @@ module.exports = { description: 'Lags Eaglercraft and crashes it', usage: ' ', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[1] === 'on') { bot.eaglercrashstarted = true bot.eaglercrash = setInterval(async function () { diff --git a/commands/echo.js b/commands/echo.js index 6d92a90..b77231e 100644 --- a/commands/echo.js +++ b/commands/echo.js @@ -5,10 +5,10 @@ module.exports = { description: 'Says a message', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.chat(args.join(' ')) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { bot.chat(args.join(' ')) } } diff --git a/commands/end.js b/commands/end.js index 2898ec4..d1825a7 100644 --- a/commands/end.js +++ b/commands/end.js @@ -5,10 +5,10 @@ module.exports = { description: 'Ends the bot\'s client', usage: '', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.end('end command') }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { bot.end('end command') } } diff --git a/commands/entity.js b/commands/entity.js index c37186d..cbec8e6 100644 --- a/commands/entity.js +++ b/commands/entity.js @@ -5,7 +5,7 @@ module.exports = { description: 'Summon any entity!', usage: '[specific] ', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { // eslint-disable-next-line no-unused-vars const mcData = require('minecraft-data')(bot.version) diff --git a/commands/eval.js b/commands/eval.js index a157f37..1b194c7 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -15,7 +15,7 @@ module.exports = { '', ' ' ], - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0] === 'run') { try { bot.tellraw(selector, { text: `${util.inspect(bot.vm.run(args.slice(1).join(' ')), { stylize })}`.substring(0, 32000) }) @@ -40,7 +40,7 @@ module.exports = { }) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { if (args[0] === 'run') { const Embed = new MessageEmbed() .setColor('#FFFF00') diff --git a/commands/executebypass.js b/commands/executebypass.js index c460d63..d939909 100644 --- a/commands/executebypass.js +++ b/commands/executebypass.js @@ -5,7 +5,7 @@ module.exports = { description: 'Execute command bypassed', usage: ' ', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.run('minecraft:execute unless entity @s[name= run ] run ' + args.slice(1).join(' ')) } } diff --git a/commands/gamemodeall.js b/commands/gamemodeall.js index ab42b42..80e7001 100644 --- a/commands/gamemodeall.js +++ b/commands/gamemodeall.js @@ -5,7 +5,7 @@ module.exports = { description: 'Gamemode everyone', usage: ' ', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.run(`minecraft:execute unless entity @s[name= run ] run gamemode ${args[1]} @a[name=!${bot.username}]`) } } diff --git a/commands/help.js b/commands/help.js index a026a35..20d7d42 100644 --- a/commands/help.js +++ b/commands/help.js @@ -8,7 +8,7 @@ module.exports = { description: 'Shows the help', usage: '[command]', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0]) { for (const command of bot.command_handler.commands) { function run () { diff --git a/commands/list.js b/commands/list.js index 41b1dc1..18c2bae 100644 --- a/commands/list.js +++ b/commands/list.js @@ -58,7 +58,7 @@ module.exports = { } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { try { let players = '' for (const property of bot.players.list) { diff --git a/commands/music.js b/commands/music.js index 5c470c2..87da1e4 100644 --- a/commands/music.js +++ b/commands/music.js @@ -161,7 +161,7 @@ module.exports = { '', '' ], - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { switch (args[0]) { case 'play': play(bot, args.slice(1), false, null, selector) @@ -253,7 +253,7 @@ module.exports = { throw new SyntaxError('Invalid argument') } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { let Embed switch (args[0]) { case 'play': diff --git a/commands/netmsg.js b/commands/netmsg.js index 584854b..20d8815 100644 --- a/commands/netmsg.js +++ b/commands/netmsg.js @@ -5,7 +5,7 @@ module.exports = { description: 'Broadcasts a message to all of the servers that the bot is connected', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { const component = [ { text: '[', diff --git a/commands/refillcore.js b/commands/refillcore.js index b953ce7..50a5bb8 100644 --- a/commands/refillcore.js +++ b/commands/refillcore.js @@ -4,10 +4,10 @@ module.exports = { description: 'Resets the bot\'s command core', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.loopPlace() }, - discordExecute: function (bot) { + discordExecute (bot) { bot.core.loopPlace() } } diff --git a/commands/rtp.js b/commands/rtp.js index ead5f0b..c16b150 100644 --- a/commands/rtp.js +++ b/commands/rtp.js @@ -6,7 +6,7 @@ module.exports = { description: 'Randomly teleports the player', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { const rtppos = `${between(20000000, 500000)} 100 ${between(20000000, 500000)}` bot.tellraw(selector, [{ text: 'Teleporting ', color: 'white' }, { text: username, color: 'aqua' }, { text: ' to ', color: 'white' }, { text: rtppos, color: 'green' }, { text: '...', color: 'white' }]) bot.core.run(`essentials:teleport ${sender} ${rtppos}`) diff --git a/commands/servereval.js b/commands/servereval.js index aa8868f..ea36234 100644 --- a/commands/servereval.js +++ b/commands/servereval.js @@ -9,14 +9,14 @@ module.exports = { description: 'Basically eval command but without vm2', trusted: 2, usage: ' ', - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { try { bot.tellraw(selector, { text: util.inspect(eval(args.slice(1).join(' ')), { stylize }).substring(0, 32766) }) } catch (err) { bot.tellraw(selector, { text: util.inspect(err).replaceAll('runner', 'chayapak1'), color: 'red' }) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message, config) { try { const Embed = new MessageEmbed() .setColor('#FFFF00') diff --git a/commands/test.js b/commands/test.js index c2dce21..540e378 100644 --- a/commands/test.js +++ b/commands/test.js @@ -6,7 +6,7 @@ module.exports = { description: 'Tests if the bot is working', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.tellraw(selector, [ { text: `Username: ${username},`, @@ -30,7 +30,7 @@ module.exports = { } ]) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { const Embed = new MessageEmbed() .setColor('#FFFF00') .setTitle('Hello!') diff --git a/commands/time.js b/commands/time.js index eaf1ca1..3968ed1 100644 --- a/commands/time.js +++ b/commands/time.js @@ -7,7 +7,7 @@ module.exports = { description: 'Shows the time', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { const timezone = args.join(' ') const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A') const component = [{ text: 'The current date and time for the timezone ', color: 'white' }, { text: timezone, color: 'aqua' }, { text: ' is: ', color: 'white' }, { text: `${momented}`, color: 'green' }] @@ -19,7 +19,7 @@ module.exports = { bot.tellraw(selector, component) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) { const timezone = args.join(' ') const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A') const description = `The current date and time for the timezone ${timezone} is: ${momented}` diff --git a/commands/tpall.js b/commands/tpall.js index 3c81fc9..48cdef3 100644 --- a/commands/tpall.js +++ b/commands/tpall.js @@ -5,7 +5,7 @@ module.exports = { description: 'Teleport everyone', usage: ' ', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.core.run(`minecraft:execute unless entity @s[name= run ] run tp @a ${args.slice(1).join(' ')}`) } } diff --git a/commands/uptime.js b/commands/uptime.js index 35de09c..6c50c53 100644 --- a/commands/uptime.js +++ b/commands/uptime.js @@ -7,10 +7,10 @@ module.exports = { description: 'Shows the bot\'s uptime', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { bot.tellraw(selector, [{ text: 'The bot\'s uptime is ', color: 'white' }, { text: `${secondsToHms(Math.floor(performance.now() / 1000))}`, color: 'green' }]) }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { const Embed = new MessageEmbed() .setColor('#FFFF00') .setTitle('Bot\'s Uptime') diff --git a/commands/urban.js b/commands/urban.js index 1449389..4f58672 100644 --- a/commands/urban.js +++ b/commands/urban.js @@ -6,7 +6,7 @@ module.exports = { description: 'Working Urban Dictionary', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { urban.autocompleteExtra(args[0], (error, results) => { if (error) { bot.tellraw(selector, [{ text: '[', color: 'dark_red' }, { text: 'Urban', color: 'red' }, { text: '] ', color: 'dark_red' }, { text: error.message, color: 'red' }]) diff --git a/commands/uuid.js b/commands/uuid.js index 30d5bc9..0066db6 100644 --- a/commands/uuid.js +++ b/commands/uuid.js @@ -6,7 +6,7 @@ module.exports = { description: 'Gets the UUID of a player. If no player specified it will show your UUID instead', usage: '', trusted: 0, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0]) { const playername = args.join(' ') const player = bot.playersAddedPlayers[playername] @@ -62,7 +62,7 @@ module.exports = { ]) } }, - discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) { + discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) { if (args[0]) { const playername = args.join(' ') const player = bot.playersAddedPlayers[playername] diff --git a/commands/validate.js b/commands/validate.js index 18a1c63..ac9ddf8 100644 --- a/commands/validate.js +++ b/commands/validate.js @@ -5,7 +5,7 @@ module.exports = { alias: [], usage: '', trusted: 1, - execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { + execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { if (args[0] === hash) { bot.tellraw(selector, { text: 'Valid hash', color: 'green' }) } else if (args[0] === ownerhash) {