Update commands/urban.js

This commit is contained in:
4Parker02991 2024-01-27 11:12:33 -05:00
parent d3cfdf1838
commit 384e40fc64

View file

@ -41,7 +41,7 @@ async function sleep(ms) {
const definitions2 = await urban.define(args.join(' '))
//const definitions2 = await urban.example(args.join(' '))
//ChatMessage.fromNotch(await sleep(500) ?? player.displayName ?? player.profile.name ).toMotd().replaceAll('§', '&')
if(bot.options.Core.CorelessMode){
if(!bot.options.Core.enabled){
const ChatMessage = require('prismarine-chat')(bot.options.version)
for (const definition of definitions) {
@ -75,7 +75,7 @@ bot.chat(ChatMessage.fromNotch(await sleep(500)
//text: definition.word text: definition.definition
} catch (e) {
if (bot.options.Core.CorelessMode){
if (!bot.options.Core.enabled){
const ChatMessage = require('prismarine-chat')(bot.options.version)
bot.chat(ChatMessage.fromNotch([cmd,{ text: e.toString(), color: 'red' }]).toMotd().replaceAll('§', '&'))
}else {