mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-04 16:15:43 -05:00
add shit to the default config
This commit is contained in:
@@ -24,7 +24,27 @@ bots:
|
||||
prefix: "-"
|
||||
token: ""
|
||||
|
||||
console:
|
||||
prefix: "."
|
||||
|
||||
core:
|
||||
itemRefill: false
|
||||
area:
|
||||
start:
|
||||
x: 0
|
||||
y: 0
|
||||
z: 0
|
||||
end:
|
||||
x: 15
|
||||
y: 0
|
||||
z: 15
|
||||
itemName: { text: "https://doin-your.mom", color: "dark_red" }
|
||||
name: { text: "https://doin-your.mom", color: "dark_red" }
|
||||
|
||||
|
||||
server:
|
||||
host: ""
|
||||
port: ""
|
||||
username: ""
|
||||
host: "localhost"
|
||||
# port: ""
|
||||
username: "player"
|
||||
version: "1.20.2"
|
||||
reconnectDelay: 3000
|
||||
|
||||
@@ -270,5 +270,9 @@ module.exports = {
|
||||
acknowledged: bitset
|
||||
})
|
||||
}
|
||||
|
||||
bot.tellraw = (selector, message) => {
|
||||
bot.core.run(`minecraft:tellraw ${selector} ${JSON.stringify(message)}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ module.exports = {
|
||||
inject (context) {
|
||||
const bot = context.bot;
|
||||
const config = context.config;
|
||||
const { MessageBuilder } = require('prismarine-chat')(bot.server.version);
|
||||
bot.commandManager = {
|
||||
commands: {},
|
||||
commandlist: [],
|
||||
@@ -18,7 +19,7 @@ module.exports = {
|
||||
|
||||
try {
|
||||
if (!command || !command.execute) console.error('unknown command');
|
||||
return command?.execute({ bot, config, arguments: args })
|
||||
return command?.execute({ bot, config, arguments: args, MessageBuilder })
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user