add shit to the default config

This commit is contained in:
Parker2991
2024-12-17 20:30:34 -05:00
parent c8cc38616d
commit 74717cabeb
3 changed files with 29 additions and 4 deletions
+23 -3
View File
@@ -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
+4
View File
@@ -270,5 +270,9 @@ module.exports = {
acknowledged: bitset
})
}
bot.tellraw = (selector, message) => {
bot.core.run(`minecraft:tellraw ${selector} ${JSON.stringify(message)}`);
}
}
}
+2 -1
View File
@@ -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)
}