forked from afspiegeling/NitoriBot
remove the random ass files i have here
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
const mc = require('minecraft-protocol');
|
||||
|
||||
const client = mc.createClient({
|
||||
host: "amy.lat.",
|
||||
port: "25565",
|
||||
username: "eee",
|
||||
version: "1.20.2",
|
||||
hideErrors: false,
|
||||
})
|
||||
// username, playerUUID
|
||||
//client.write('keep_alive');
|
||||
client.on('init_client', () => {
|
||||
// client.write('login_start', { username: client.username, playerUUID: client.uuid });
|
||||
});
|
||||
//console.log(client.write);
|
||||
@@ -1,89 +0,0 @@
|
||||
const mc = require('minecraft-protocol')
|
||||
const readline = require('readline')
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
terminal: false,
|
||||
prompt: 'Enter a message> '
|
||||
})
|
||||
|
||||
const [,, host, port, username] = process.argv
|
||||
//if (!host || !port) {
|
||||
// console.error('Usage: node client_chat.js <host> <port> <username>')
|
||||
// console.error('Usage (offline mode): node client_chat.js <host> <port> offline')
|
||||
// process.exit(1)
|
||||
//}
|
||||
|
||||
const client = mc.createClient({
|
||||
host:"ayunboom.shhnowisnottheti.me",
|
||||
username: "among",
|
||||
version: "1.8.8"
|
||||
// auth: username === 'offline' ? 'offline' : 'microsoft'
|
||||
})
|
||||
|
||||
// Boilerplate
|
||||
client.on('disconnect', function (packet) {
|
||||
console.log('Disconnected from server : ' + packet.reason)
|
||||
})
|
||||
|
||||
client.on('end', function () {
|
||||
console.log('Connection lost')
|
||||
process.exit()
|
||||
})
|
||||
|
||||
client.on('error', function (err) {
|
||||
console.log('Error occurred')
|
||||
console.log(err)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
client.on('connect', () => {
|
||||
const ChatMessage = require('prismarine-chat')(client.version)
|
||||
|
||||
console.log('Connected to server')
|
||||
rl.prompt()
|
||||
|
||||
client.on('playerChat', function ({ senderName, plainMessage, unsignedContent, formattedMessage, verified }) {
|
||||
let content
|
||||
|
||||
const allowInsecureChat = true
|
||||
|
||||
if (formattedMessage) content = JSON.parse(formattedMessage)
|
||||
else if (allowInsecureChat && unsignedContent) content = JSON.parse(unsignedContent)
|
||||
else content = { text: plainMessage }
|
||||
|
||||
const chat = new ChatMessage(content)
|
||||
console.log(senderName, { trugie: 'Verified:', false: 'UNVERIFIED:' }[verified] || '', chat.toAnsi())
|
||||
})
|
||||
client.on('systemChat', (data) => {
|
||||
console.log(data)
|
||||
});
|
||||
})
|
||||
|
||||
// Send the queued messages
|
||||
const queuedChatMessages = []
|
||||
client.on('state', function (newState) {
|
||||
if (newState === mc.states.PLAY) {
|
||||
queuedChatMessages.forEach(message => client.chat(message))
|
||||
queuedChatMessages.length = 0
|
||||
}
|
||||
})
|
||||
|
||||
// Listen for messages written to the console, send them to game chat
|
||||
rl.on('line', function (line) {
|
||||
if (line === '') {
|
||||
return
|
||||
} else if (line === '/quit') {
|
||||
console.info('Disconnected from ' + host + ':' + port)
|
||||
client.end()
|
||||
return
|
||||
} else if (line === '/end') {
|
||||
console.info('Forcibly ended client')
|
||||
process.exit(0)
|
||||
}
|
||||
if (!client.chat) {
|
||||
queuedChatMessages.push(line)
|
||||
} else {
|
||||
client.chat(line)
|
||||
}
|
||||
})
|
||||
@@ -1,9 +0,0 @@
|
||||
const { request } = require('undici');
|
||||
|
||||
(async () => {
|
||||
const url = await request('https://en.wikipedia.org/api/rest_v1/page/media-list/amongus');
|
||||
const json = await url.body.json();
|
||||
for (const e of json.items) {
|
||||
console.log(e.caption)
|
||||
}
|
||||
})()
|
||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
@@ -1 +0,0 @@
|
||||
XAUTHORITY=/var/lib/lightdm/.Xauthority DISPLAY=:0 xrandr --output VGA-1 --mode 1368x768
|
||||
@@ -1,4 +0,0 @@
|
||||
while true; do
|
||||
XAUTHORITY=/var/lib/lightdm/.Xauthority DISPLAY=:0 x0vncserver -rfbauth $HOME/.config/tigervnc/passwd
|
||||
sleep 1
|
||||
done
|
||||
@@ -1,4 +0,0 @@
|
||||
while true; do
|
||||
websockify 0.0.0.0:6080 127.0.0.1:5900
|
||||
sleep 1
|
||||
done
|
||||
@@ -1,6 +0,0 @@
|
||||
--2025-06-02 23:31:30-- https://cdn.discordapp.com/attachments/1378936268355928076/1379274815956975726/image.png?ex=683fa545
|
||||
Resolving cdn.discordapp.com (cdn.discordapp.com)... 162.159.129.233, 162.159.130.233, 162.159.135.233, ...
|
||||
Connecting to cdn.discordapp.com (cdn.discordapp.com)|162.159.129.233|:443... connected.
|
||||
HTTP request sent, awaiting response... 404 Not Found
|
||||
2025-06-02 23:31:31 ERROR 404: Not Found.
|
||||
|
||||
Reference in New Issue
Block a user