mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-03-24 02:49:44 -04:00
remove unuised davrfiarbleas
This commit is contained in:
parent
281369690d
commit
ea3ab369f1
1 changed files with 1 additions and 7 deletions
8
index.js
8
index.js
|
@ -19,14 +19,10 @@ const uuid = require('uuid-by-string');
|
|||
const readline = require('node:readline');
|
||||
const {stdin: input, stdout: output} = require('node:process');
|
||||
const rl = readline.createInterface({input, output});
|
||||
const querystring = require('querystring');
|
||||
const moment = require('moment-timezone');
|
||||
const urban = require('urban-dictionary');
|
||||
const cowsay = require('cowsay2');
|
||||
const cows = require('cowsay2/cows');
|
||||
const {stylize} = require('./util/colors/minecraft');
|
||||
const translate = require('@vitalets/google-translate-api');
|
||||
const axios = require('axios');
|
||||
const util = require('node:util');
|
||||
const {between} = require('./util/between');
|
||||
const {escapeMarkdown} = require('./util/escapeMarkdown');
|
||||
|
@ -49,7 +45,6 @@ function sleep(ms) {
|
|||
const {
|
||||
Client,
|
||||
Intents,
|
||||
MessageEmbed,
|
||||
} = require('discord.js');
|
||||
// Create Discord intentions, required in v13
|
||||
const intents = new Intents(['GUILDS', 'GUILD_MESSAGES']);
|
||||
|
@ -377,7 +372,7 @@ function main() {
|
|||
bot.emit('end', parsed, 'disconnect');
|
||||
});
|
||||
|
||||
bot._client.on('error', function(error) {
|
||||
bot._client.on('error', function() {
|
||||
// console.log('Error: ' + util.inspect(error));
|
||||
// channel.send('Error: ' + util.inspect(error));
|
||||
// onerror('error event: ' + util.inspect(err).replaceAll('runner', 'chayapak1'));
|
||||
|
@ -512,7 +507,6 @@ dcclient.on('messageCreate', async (message) => {
|
|||
if (message.author.id === dcclient.user.id) return;
|
||||
const {MessageBuilder} = require('prismarine-chat')('1.18.2');
|
||||
const channelid = message.channel.id;
|
||||
const channeldc = dcclient.channels.cache.get(channelid);
|
||||
// if (message.content.toLowerCase().startsWith('!chomensmsg ')) {
|
||||
// bot.core.run(`minecraft:tellraw @a ["",{"text":"[","color":"dark_gray"},{"text":"ChomeNS ","color":"yellow","clickEvent":{"action":"open_url","value":"https://discord.gg/xdgCkUyaA4"},"hoverEvent":{"action":"show_text","contents":[{"text":"https://discord.gg/xdgCkUyaA4 ","color":"blue"},{"text":"<-- join now","color":"red"}]}},{"text":"Discord","color":"blue","clickEvent":{"action":"open_url","value":"https://discord.gg/xdgCkUyaA4"},"hoverEvent":{"action":"show_text","contents":[{"text":"https://discord.gg/xdgCkUyaA4 ","color":"blue"},{"text":"<-- join now","color":"red"}]}},{"text":" (ChomeNS Channel)","color":"gray"},{"text":"] ","color":"dark_gray"},{"text":"${message.member.displayName}","color":"red","clickEvent":{"action":"copy_to_clipboard","value":"${message.author.username}#${message.author.discriminator}"},"hoverEvent":{"action":"show_text","value":{"text":"${message.author.username}§7#${message.author.discriminator}"} }},{"text":" ","color":"white"},` + MessageBuilder.fromString('&7' + message.content.substring(12)) + ']');
|
||||
// return;
|
||||
|
|
Loading…
Add table
Reference in a new issue