Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Knight Bot - A WhatsApp Bot
* Copyright (c) 2024 Professor
* Seba tech- A WhatsApp Bot
* Copyright (c) 2025 by king
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
Expand Down Expand Up @@ -70,17 +70,17 @@ setInterval(() => {
}
}, 30_000) // check every 30 seconds

let phoneNumber = "911234567890"
let phoneNumber = "255744134356"
let owner = JSON.parse(fs.readFileSync('./data/owner.json'))

global.botname = "KNIGHT BOT"
global.botname = "Sebastian Tech"
global.themeemoji = "•"
const pairingCode = !!phoneNumber || process.argv.includes("--pairing-code")
const useMobile = process.argv.includes("--mobile")

// Only create readline interface if we're in an interactive environment
const rl = process.stdin.isTTY ? readline.createInterface({ input: process.stdin, output: process.stdout }) : null
const question = (text) => {
const question = (text)'KnightBot
if (rl) {
return new Promise((resolve) => rl.question(text, resolve))
} else {
Expand Down Expand Up @@ -249,7 +249,7 @@ async function startXeonBotInc() {
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterName: 'KnightBot MD',
newsletter'seba MD',
serverMessageId: -1
}
}
Expand Down Expand Up @@ -361,4 +361,4 @@ fs.watchFile(file, () => {
console.log(chalk.redBright(`Update ${__filename}`))
delete require.cache[file]
require(file)
})
})