mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
use execute () {}
not execute: function () {}
This commit is contained in:
parent
e9134745aa
commit
079620296f
34 changed files with 56 additions and 56 deletions
|
@ -5,10 +5,10 @@ module.exports = {
|
|||
description: 'Sudos everyone on Ayunboom!',
|
||||
trusted: 1,
|
||||
usage: '<hash> <c:|command>',
|
||||
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(' ')}`)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
'<hash>'
|
||||
],
|
||||
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')
|
||||
|
|
|
@ -6,10 +6,10 @@ module.exports = {
|
|||
description: 'RecycleBot bruhify but actionbar',
|
||||
usage: '<message>',
|
||||
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')
|
||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
|||
description: 'Executes a command in the command core',
|
||||
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) {
|
||||
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(' '))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,14 +6,14 @@ module.exports = {
|
|||
description: 'Clears the chat',
|
||||
usage: '[specific] <player>',
|
||||
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 {
|
||||
|
|
|
@ -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 = []
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ module.exports = {
|
|||
'<hash> <list>'
|
||||
],
|
||||
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')
|
||||
|
|
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
'<list (not support on Discord)>'
|
||||
],
|
||||
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')
|
||||
|
|
|
@ -19,10 +19,10 @@ module.exports = {
|
|||
description: 'Crashes the server',
|
||||
usage: '<hash>',
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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 ',
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Lags Eaglercraft and crashes it',
|
||||
usage: '<on|off> <hash>',
|
||||
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 () {
|
||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
|||
description: 'Says a message',
|
||||
usage: '<message>',
|
||||
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(' '))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
|||
description: 'Ends the bot\'s client',
|
||||
usage: '<hash>',
|
||||
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')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Summon any entity!',
|
||||
usage: '[specific] <player>',
|
||||
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)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
'<reset>',
|
||||
'<server (eval server)> <code>'
|
||||
],
|
||||
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')
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Execute command bypassed',
|
||||
usage: '<hash> <command>',
|
||||
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(' '))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Gamemode everyone',
|
||||
usage: '<hash> <gamemode>',
|
||||
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}]`)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -161,7 +161,7 @@ module.exports = {
|
|||
'<nowplaying>',
|
||||
'<queue>'
|
||||
],
|
||||
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':
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Broadcasts a message to all of the servers that the bot is connected',
|
||||
usage: '<message>',
|
||||
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: '[',
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}`)
|
||||
|
|
|
@ -9,14 +9,14 @@ module.exports = {
|
|||
description: 'Basically eval command but without vm2',
|
||||
trusted: 2,
|
||||
usage: '<ownerhash> <code>',
|
||||
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')
|
||||
|
|
|
@ -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!')
|
||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
|||
description: 'Shows the time',
|
||||
usage: '<timezone>',
|
||||
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}`
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
description: 'Teleport everyone',
|
||||
usage: '<hash> <player>',
|
||||
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(' ')}`)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
description: 'Working Urban Dictionary',
|
||||
usage: '<word>',
|
||||
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' }])
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
alias: [],
|
||||
usage: '<hash>',
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue