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!',
|
description: 'Sudos everyone on Ayunboom!',
|
||||||
trusted: 1,
|
trusted: 1,
|
||||||
usage: '<hash> <c:|command>',
|
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(' ')}`)
|
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(' ')}`)
|
bot.core.run(`essentials:sudo * ${args.join(' ')}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ module.exports = {
|
||||||
description: 'Shows the bot\'s username and UUID',
|
description: 'Shows the bot\'s username and UUID',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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' }] } }])
|
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()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
.setTitle('Bot\'s User')
|
.setTitle('Bot\'s User')
|
||||||
|
|
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
'<hash>'
|
'<hash>'
|
||||||
],
|
],
|
||||||
trusted: 1,
|
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') {
|
if (args[1] === 'true' || args[1] === 'on') {
|
||||||
bot.visibility = true
|
bot.visibility = true
|
||||||
bot.chat('/essentials:vanish disable')
|
bot.chat('/essentials:vanish disable')
|
||||||
|
@ -30,7 +30,7 @@ module.exports = {
|
||||||
throw new SyntaxError('Invalid argument')
|
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') {
|
if (args[0] === 'true' || args[0] === 'on') {
|
||||||
bot.visibility = true
|
bot.visibility = true
|
||||||
bot.chat('/essentials:vanish disable')
|
bot.chat('/essentials:vanish disable')
|
||||||
|
|
|
@ -6,10 +6,10 @@ module.exports = {
|
||||||
description: 'RecycleBot bruhify but actionbar',
|
description: 'RecycleBot bruhify but actionbar',
|
||||||
usage: '<message>',
|
usage: '<message>',
|
||||||
trusted: 0,
|
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(' ')
|
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(' ')
|
bot.bruhifyText = args.join(' ')
|
||||||
const Embed = new MessageEmbed()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
||||||
description: 'Executes a command in the command core',
|
description: 'Executes a command in the command core',
|
||||||
usage: '<command>',
|
usage: '<command>',
|
||||||
trusted: 0,
|
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(' '))
|
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(' '))
|
bot.core.run(args.join(' '))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
description: 'Shows the bot\'s changelog',
|
description: 'Shows the bot\'s changelog',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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 = []
|
const component = []
|
||||||
|
|
||||||
component.push({ text: 'Changelogs ', color: 'green' })
|
component.push({ text: 'Changelogs ', color: 'green' })
|
||||||
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
|
|
||||||
bot.tellraw(selector, component)
|
bot.tellraw(selector, component)
|
||||||
},
|
},
|
||||||
discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc) {
|
discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc) {
|
||||||
let changelogs = ''
|
let changelogs = ''
|
||||||
changelog.forEach((message, number) => {
|
changelog.forEach((message, number) => {
|
||||||
number += 1
|
number += 1
|
||||||
|
|
|
@ -6,14 +6,14 @@ module.exports = {
|
||||||
description: 'Clears the chat',
|
description: 'Clears the chat',
|
||||||
usage: '[specific] <player>',
|
usage: '[specific] <player>',
|
||||||
trusted: 0,
|
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') {
|
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' }])
|
bot.tellraw(args[1], [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: `Your chat has been cleared by ${username}.`, color: 'dark_green' }])
|
||||||
} else {
|
} else {
|
||||||
bot.tellraw('@a', [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: 'The chat has been cleared.', color: 'dark_green' }])
|
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') {
|
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' }])
|
bot.tellraw(args[1], [{ text: `${'\n'.repeat(100)}`, color: 'white' }, { text: `Your chat has been cleared by ${username} (on Discord).`, color: 'dark_green' }])
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -5,12 +5,12 @@ module.exports = {
|
||||||
alias: ['ccq'],
|
alias: ['ccq'],
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
trusted: 0,
|
||||||
execute: function (bot) {
|
execute (bot) {
|
||||||
if (bot.queue[0]) {
|
if (bot.queue[0]) {
|
||||||
bot.chatQueue = []
|
bot.chatQueue = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
discordExecute: function (bot) {
|
discordExecute (bot) {
|
||||||
if (bot.queue[0]) {
|
if (bot.queue[0]) {
|
||||||
bot.chatQueue = []
|
bot.chatQueue = []
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ module.exports = {
|
||||||
'<hash> <list>'
|
'<hash> <list>'
|
||||||
],
|
],
|
||||||
trusted: 1,
|
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 (!bot.cloops) bot.cloops = []
|
||||||
if (args[1] === 'add' && args[3]) {
|
if (args[1] === 'add' && args[3]) {
|
||||||
if (!Number(args[2]) && Number(args[2]) !== 0) throw new SyntaxError('Invalid interval')
|
if (!Number(args[2]) && Number(args[2]) !== 0) throw new SyntaxError('Invalid interval')
|
||||||
|
@ -84,7 +84,7 @@ module.exports = {
|
||||||
throw new SyntaxError('Invalid argument')
|
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 (!bot.cloops) bot.cloops = []
|
||||||
if (args[0] === 'add' && args[2]) {
|
if (args[0] === 'add' && args[2]) {
|
||||||
if (!Number(args[1]) && Number(args[1]) !== 0) throw new SyntaxError('Invalid interval')
|
if (!Number(args[1]) && Number(args[1]) !== 0) throw new SyntaxError('Invalid interval')
|
||||||
|
|
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
'<list (not support on Discord)>'
|
'<list (not support on Discord)>'
|
||||||
],
|
],
|
||||||
trusted: 0,
|
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') {
|
if (args[0] === 'list') {
|
||||||
const listed = Object.keys(cows)
|
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]] }) })
|
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()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
.setTitle('Cowsay')
|
.setTitle('Cowsay')
|
||||||
|
|
|
@ -19,10 +19,10 @@ module.exports = {
|
||||||
description: 'Crashes the server',
|
description: 'Crashes the server',
|
||||||
usage: '<hash>',
|
usage: '<hash>',
|
||||||
trusted: 1,
|
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)
|
crash(bot)
|
||||||
},
|
},
|
||||||
discordExecute: function (bot, username, usernameraw, sender, prefix, args, channeldc, message) {
|
discordExecute (bot, username, usernameraw, sender, prefix, args, channeldc, message) {
|
||||||
crash(bot)
|
crash(bot)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ module.exports = {
|
||||||
description: 'Shows the bot\'s creator',
|
description: 'Shows the bot\'s creator',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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' }])
|
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()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
.setTitle('Creator')
|
.setTitle('Creator')
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Shows the discord invite',
|
description: 'Shows the discord invite',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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, [
|
bot.tellraw(selector, [
|
||||||
{
|
{
|
||||||
text: 'The Discord invite is ',
|
text: 'The Discord invite is ',
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Lags Eaglercraft and crashes it',
|
description: 'Lags Eaglercraft and crashes it',
|
||||||
usage: '<on|off> <hash>',
|
usage: '<on|off> <hash>',
|
||||||
trusted: 1,
|
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') {
|
if (args[1] === 'on') {
|
||||||
bot.eaglercrashstarted = true
|
bot.eaglercrashstarted = true
|
||||||
bot.eaglercrash = setInterval(async function () {
|
bot.eaglercrash = setInterval(async function () {
|
||||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
||||||
description: 'Says a message',
|
description: 'Says a message',
|
||||||
usage: '<message>',
|
usage: '<message>',
|
||||||
trusted: 0,
|
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(' '))
|
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(' '))
|
bot.chat(args.join(' '))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,10 @@ module.exports = {
|
||||||
description: 'Ends the bot\'s client',
|
description: 'Ends the bot\'s client',
|
||||||
usage: '<hash>',
|
usage: '<hash>',
|
||||||
trusted: 1,
|
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')
|
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')
|
bot.end('end command')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Summon any entity!',
|
description: 'Summon any entity!',
|
||||||
usage: '[specific] <player>',
|
usage: '[specific] <player>',
|
||||||
trusted: 0,
|
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
|
// eslint-disable-next-line no-unused-vars
|
||||||
const mcData = require('minecraft-data')(bot.version)
|
const mcData = require('minecraft-data')(bot.version)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ module.exports = {
|
||||||
'<reset>',
|
'<reset>',
|
||||||
'<server (eval server)> <code>'
|
'<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') {
|
if (args[0] === 'run') {
|
||||||
try {
|
try {
|
||||||
bot.tellraw(selector, { text: `${util.inspect(bot.vm.run(args.slice(1).join(' ')), { stylize })}`.substring(0, 32000) })
|
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') {
|
if (args[0] === 'run') {
|
||||||
const Embed = new MessageEmbed()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Execute command bypassed',
|
description: 'Execute command bypassed',
|
||||||
usage: '<hash> <command>',
|
usage: '<hash> <command>',
|
||||||
trusted: 1,
|
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(' '))
|
bot.core.run('minecraft:execute unless entity @s[name= run ] run ' + args.slice(1).join(' '))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Gamemode everyone',
|
description: 'Gamemode everyone',
|
||||||
usage: '<hash> <gamemode>',
|
usage: '<hash> <gamemode>',
|
||||||
trusted: 1,
|
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}]`)
|
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',
|
description: 'Shows the help',
|
||||||
usage: '[command]',
|
usage: '[command]',
|
||||||
trusted: 0,
|
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]) {
|
if (args[0]) {
|
||||||
for (const command of bot.command_handler.commands) {
|
for (const command of bot.command_handler.commands) {
|
||||||
function run () {
|
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 {
|
try {
|
||||||
let players = ''
|
let players = ''
|
||||||
for (const property of bot.players.list) {
|
for (const property of bot.players.list) {
|
||||||
|
|
|
@ -161,7 +161,7 @@ module.exports = {
|
||||||
'<nowplaying>',
|
'<nowplaying>',
|
||||||
'<queue>'
|
'<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]) {
|
switch (args[0]) {
|
||||||
case 'play':
|
case 'play':
|
||||||
play(bot, args.slice(1), false, null, selector)
|
play(bot, args.slice(1), false, null, selector)
|
||||||
|
@ -253,7 +253,7 @@ module.exports = {
|
||||||
throw new SyntaxError('Invalid argument')
|
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
|
let Embed
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
case 'play':
|
case 'play':
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Broadcasts a message to all of the servers that the bot is connected',
|
description: 'Broadcasts a message to all of the servers that the bot is connected',
|
||||||
usage: '<message>',
|
usage: '<message>',
|
||||||
trusted: 0,
|
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 = [
|
const component = [
|
||||||
{
|
{
|
||||||
text: '[',
|
text: '[',
|
||||||
|
|
|
@ -4,10 +4,10 @@ module.exports = {
|
||||||
description: 'Resets the bot\'s command core',
|
description: 'Resets the bot\'s command core',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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()
|
bot.core.loopPlace()
|
||||||
},
|
},
|
||||||
discordExecute: function (bot) {
|
discordExecute (bot) {
|
||||||
bot.core.loopPlace()
|
bot.core.loopPlace()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
description: 'Randomly teleports the player',
|
description: 'Randomly teleports the player',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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)}`
|
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.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}`)
|
bot.core.run(`essentials:teleport ${sender} ${rtppos}`)
|
||||||
|
|
|
@ -9,14 +9,14 @@ module.exports = {
|
||||||
description: 'Basically eval command but without vm2',
|
description: 'Basically eval command but without vm2',
|
||||||
trusted: 2,
|
trusted: 2,
|
||||||
usage: '<ownerhash> <code>',
|
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 {
|
try {
|
||||||
bot.tellraw(selector, { text: util.inspect(eval(args.slice(1).join(' ')), { stylize }).substring(0, 32766) })
|
bot.tellraw(selector, { text: util.inspect(eval(args.slice(1).join(' ')), { stylize }).substring(0, 32766) })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
bot.tellraw(selector, { text: util.inspect(err).replaceAll('runner', 'chayapak1'), color: 'red' })
|
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 {
|
try {
|
||||||
const Embed = new MessageEmbed()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
description: 'Tests if the bot is working',
|
description: 'Tests if the bot is working',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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, [
|
bot.tellraw(selector, [
|
||||||
{
|
{
|
||||||
text: `Username: ${username},`,
|
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()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
.setTitle('Hello!')
|
.setTitle('Hello!')
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
description: 'Shows the time',
|
description: 'Shows the time',
|
||||||
usage: '<timezone>',
|
usage: '<timezone>',
|
||||||
trusted: 0,
|
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 timezone = args.join(' ')
|
||||||
const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A')
|
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' }]
|
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)
|
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 timezone = args.join(' ')
|
||||||
const momented = moment().tz(timezone).format('dddd, MMMM Do, YYYY, hh:mm:ss A')
|
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}`
|
const description = `The current date and time for the timezone ${timezone} is: ${momented}`
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
description: 'Teleport everyone',
|
description: 'Teleport everyone',
|
||||||
usage: '<hash> <player>',
|
usage: '<hash> <player>',
|
||||||
trusted: 1,
|
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(' ')}`)
|
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',
|
description: 'Shows the bot\'s uptime',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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' }])
|
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()
|
const Embed = new MessageEmbed()
|
||||||
.setColor('#FFFF00')
|
.setColor('#FFFF00')
|
||||||
.setTitle('Bot\'s Uptime')
|
.setTitle('Bot\'s Uptime')
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = {
|
||||||
description: 'Working Urban Dictionary',
|
description: 'Working Urban Dictionary',
|
||||||
usage: '<word>',
|
usage: '<word>',
|
||||||
trusted: 0,
|
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) => {
|
urban.autocompleteExtra(args[0], (error, results) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
bot.tellraw(selector, [{ text: '[', color: 'dark_red' }, { text: 'Urban', color: 'red' }, { text: '] ', color: 'dark_red' }, { text: error.message, color: 'red' }])
|
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',
|
description: 'Gets the UUID of a player. If no player specified it will show your UUID instead',
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
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]) {
|
if (args[0]) {
|
||||||
const playername = args.join(' ')
|
const playername = args.join(' ')
|
||||||
const player = bot.playersAddedPlayers[playername]
|
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]) {
|
if (args[0]) {
|
||||||
const playername = args.join(' ')
|
const playername = args.join(' ')
|
||||||
const player = bot.playersAddedPlayers[playername]
|
const player = bot.playersAddedPlayers[playername]
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = {
|
||||||
alias: [],
|
alias: [],
|
||||||
usage: '<hash>',
|
usage: '<hash>',
|
||||||
trusted: 1,
|
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) {
|
if (args[0] === hash) {
|
||||||
bot.tellraw(selector, { text: 'Valid hash', color: 'green' })
|
bot.tellraw(selector, { text: 'Valid hash', color: 'green' })
|
||||||
} else if (args[0] === ownerhash) {
|
} else if (args[0] === ownerhash) {
|
||||||
|
|
Loading…
Reference in a new issue