Spaces:
Paused
Paused
Update index.js
Browse files1234567891011const express = require('express');const app = express();// 1. Mandatory Web Server for HFapp.get('/', (req, res) => res.send('Bot Status: Online 24/7'));app.listen(7860, () => console.log('Listening on port 7860'));// 2. Self-Ping (Prevents internal idling)setInterval(() => {console.log("Keep-alive tick: " + new Date().toISOString());}, 300000); // Logs every 5 mins123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566const mineflayer = require('mineflayer');const express = require('express');const app = express();// HF Keep-Aliveapp.get('/', (req, res) => res.send('The Couple is Online! ❤️'));app.listen(7860);const createPartner = (username, password, personality) => {const bot = mineflayer.createBot({host: 'mastercraftph.net',username: username,auth: 'offline'});bot.on('spawn', () => {setTimeout(() => {bot.chat(`/register ${password} ${password}`);bot.chat(`/login ${password}`);}, 3000);});personality(bot);bot.on('end', () => setTimeout(() => createPartner(username, password, personality), 10000));return bot;};// --- THE SHY GIRLFRIEND (sweetily) ---const shyGirlfriend = (bot) => {bot.on('chat', (username, message) => {if (username === 'aprenda' && message.includes('fight')) {setTimeout(() => bot.chat("Ayoko nga... nakakatakot kaya mamatay dito. 🥺"), 2000);}if (username === 'aprenda' && message.includes('protekta')) {setTimeout(() => bot.chat("Hmp, fine. Pero sa likod lang ako ha?"), 4000);}});// Reaction when someone hits herbot.on('health', () => {if (bot.health < 20) {bot.chat("Hala! May pumapalo sa akin! Tulong!! 😭");}});};// --- THE PROTECTIVE BOYFRIEND (aprenda) ---const protectiveBoyfriend = (bot) => {bot.on('chat', (username, message) => {// Argument Triggerif (username === 'sweetily' && message.includes('nakakatakot')) {setTimeout(() => bot.chat("Nandito naman ako eh. Hindi ka nila mahahawakan habang buhay pa ako. ⚔️"), 2000);}// Defending her from othersif (message.includes('tulong') && username === 'sweetily') {bot.chat("SINO YUN?! Lumayo kayo sa kanya! 😡");// Here you would normally trigger bot.pvp.attack() if you had the plugin}});};// Initialize Bothconst gf = createPartner('sweetily', 'CouplePass123', shyGirlfriend);const bf = createPartner('aprenda', 'CouplePass123', protectiveBoyfriend);
index.js+62-7