Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions commands/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ const path = require('path');

async function githubCommand(sock, chatId, message) {
try {
const res = await fetch('https://api.github.com/repos/mruniquehacker/Knightbot-md');
const res = await fetch('');
if (!res.ok) throw new Error('Error fetching repository data');
const json = await res.json();

let txt = `*乂 Knight Bot MD 乂*\n\n`;
let txt = `*乂 KELIN 乂*\n\n`;
txt += `✩ *Name* : ${json.name}\n`;
txt += `✩ *Watchers* : ${json.watchers_count}\n`;
txt += `✩ *Size* : ${(json.size / 1024).toFixed(2)} MB\n`;
txt += `✩ *Last Updated* : ${moment(json.updated_at).format('DD/MM/YY - HH:mm:ss')}\n`;
txt += `✩ *URL* : ${json.html_url}\n`;
txt += `✩ *Forks* : ${json.forks_count}\n`;
txt += `✩ *Stars* : ${json.stargazers_count}\n\n`;
txt += `💥 *KnightBot MD*`;
txt += `💥 *KELIN MD*`;

// Use the local asset image
const imgPath = path.join(__dirname, '../assets/bot_image.jpg');
Expand Down
194 changes: 97 additions & 97 deletions commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,156 +5,156 @@ const path = require('path');
async function helpCommand(sock, chatId, message) {
const helpMessage = `
╔═══════════════════╗
*🤖 ${settings.botName || 'KnightBot-MD'}*
Version: *${settings.version || '2.0.5'}*
by ${settings.botOwner || 'Mr Unique Hacker'}
YT : ${global.ytch}
* ${settings.botName || 'KELIN'}*
The Crib Bot
by ${settings.botOwner || 'KELIN'}

╚═══════════════════╝

*Available Commands:*
*COMMANDS*

╔═══════════════════╗
🌐 *General Commands*:
║ ➤ .help or .menu
*Utility*:
║ ➤ .help
║ ➤ .ping
║ ➤ .alive
║ ➤ .tts <text>
║ ➤ .tts
║ ➤ .owner
║ ➤ .joke
║ ➤ .quote
║ ➤ .fact
║ ➤ .weather <city>
║ ➤ .weather
║ ➤ .news
║ ➤ .attp <text>
║ ➤ .lyrics <song_title>
║ ➤ .8ball <question>
║ ➤ .attp
║ ➤ .lyrics
║ ➤ .8ball
║ ➤ .groupinfo
║ ➤ .staff or .admins
║ ➤ .admins
║ ➤ .vv
║ ➤ .trt <text> <lang>
║ ➤ .ss <link>
║ ➤ .trt
║ ➤ .ss
║ ➤ .jid
╚═══════════════════╝

╔═══════════════════╗
👮‍♂️ *Admin Commands*:
║ ➤ .ban @user
║ ➤ .promote @user
║ ➤ .demote @user
║ ➤ .mute <minutes>
*Group*:
║ ➤ .ban
║ ➤ .promote
║ ➤ .demote
║ ➤ .mute
║ ➤ .unmute
║ ➤ .delete or .del
║ ➤ .kick @user
║ ➤ .warnings @user
║ ➤ .warn @user
║ ➤ .delete
║ ➤ .kick
║ ➤ .warnings
║ ➤ .warn
║ ➤ .antilink
║ ➤ .antibadword
║ ➤ .clear
║ ➤ .tag <message>
║ ➤ .tag
║ ➤ .tagall
║ ➤ .chatbot
║ ➤ .resetlink
║ ➤ .welcome <on/off>
║ ➤ .goodbye <on/off>
╚═══════════════════
║ ➤ .welcome
║ ➤ .goodbye
╚═══════════════════

╔═══════════════════
🔒 *Owner Commands*:
╔═══════════════════
*Owner*:
║ ➤ .mode
║ ➤ .autostatus
║ ➤ .clearsession
║ ➤ .antidelete
║ ➤ .cleartmp
║ ➤ .setpp <reply to image>
║ ➤ .setpp
║ ➤ .autoreact
╚═══════════════════╝

╔═══════════════════╗
🎨 *Image/Sticker Commands*:
║ ➤ .blur <image>
║ ➤ .simage <reply to sticker>
║ ➤ .sticker <reply to image>
║ ➤ .tgsticker <Link>
*Sticker*:
║ ➤ .blur
║ ➤ .simage
║ ➤ .sticker
║ ➤ .tgsticker
║ ➤ .meme
║ ➤ .take <packname>
║ ➤ .emojimix <emj1>+<emj2>
║ ➤ .take
║ ➤ .emojimix
╚═══════════════════╝

╔═══════════════════╗
🎮 *Game Commands*:
║ ➤ .tictactoe @user
*Games*:
║ ➤ .tictactoe
║ ➤ .hangman
║ ➤ .guess <letter>
║ ➤ .guess
║ ➤ .trivia
║ ➤ .answer <answer>
║ ➤ .answer
║ ➤ .truth
║ ➤ .dare
╚═══════════════════
╚═══════════════════

╔═══════════════════
🤖 *AI Commands*:
║ ➤ .gpt <question>
║ ➤ .gemini <question>
║ ➤ .imagine <prompt>
║ ➤ .flux <prompt>
╚═══════════════════
╔═══════════════════
*AI Commands*:
║ ➤ .gpt
║ ➤ .gemini
║ ➤ .imagine
║ ➤ .flux
╚═══════════════════

╔═══════════════════
🎯 *Fun Commands*:
║ ➤ .compliment @user
║ ➤ .insult @user
╔═══════════════════
*Fun*
║ ➤ .compliment
║ ➤ .insult
║ ➤ .flirt
║ ➤ .shayari
║ ➤ .goodnight
║ ➤ .roseday
║ ➤ .character @user
║ ➤ .wasted @user
║ ➤ .ship @user
║ ➤ .simp @user
║ ➤ .stupid @user [text]
╚═══════════════════
║ ➤ .character
║ ➤ .wasted
║ ➤ .ship
║ ➤ .simp
║ ➤ .stupid
╚═══════════════════

╔═══════════════════
🔤 *Textmaker*:
║ ➤ .metallic <text>
║ ➤ .ice <text>
║ ➤ .snow <text>
║ ➤ .impressive <text>
║ ➤ .matrix <text>
║ ➤ .light <text>
║ ➤ .neon <text>
║ ➤ .devil <text>
║ ➤ .purple <text>
║ ➤ .thunder <text>
║ ➤ .leaves <text>
║ ➤ .1917 <text>
║ ➤ .arena <text>
║ ➤ .hacker <text>
║ ➤ .sand <text>
║ ➤ .blackpink <text>
║ ➤ .glitch <text>
║ ➤ .fire <text>
╚═══════════════════
╔═══════════════════
*Textmaker*:
║ ➤ .metallic
║ ➤ .ice
║ ➤ .snow
║ ➤ .impressive
║ ➤ .matrix
║ ➤ .light
║ ➤ .neon
║ ➤ .devil
║ ➤ .purple
║ ➤ .thunder
║ ➤ .leaves
║ ➤ .1917
║ ➤ .arena
║ ➤ .hacker
║ ➤ .sand
║ ➤ .blackpink
║ ➤ .glitch
║ ➤ .fire
╚═══════════════════

╔═══════════════════
📥 *Downloader*:
║ ➤ .play <song_name>
║ ➤ .song <song_name>
║ ➤ .instagram <link>
║ ➤ .facebook <link>
║ ➤ .tiktok <link>
║ ➤ .video <song name>
║ ➤ .ytmp4 <Link>
╚═══════════════════
╔═══════════════════
*Dl*:
║ ➤ .play
║ ➤ .song
║ ➤ .instagram
║ ➤ .facebook
║ ➤ .tiktok
║ ➤ .video
║ ➤ .ytmp4
╚═══════════════════

╔═══════════════════
💻 *Github Commands:*
╔═══════════════════
*Github*
║ ➤ .git
║ ➤ .github
║ ➤ .sc
║ ➤ .script
║ ➤ .repo
╚═══════════════════
╚═══════════════════

Join our channel for updates:`;

Expand All @@ -171,8 +171,8 @@ Join our channel for updates:`;
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterName: 'KnightBot MD',
newsletterJid: '',
newsletterName: 'KELIN MD',
serverMessageId: -1
}
}
Expand All @@ -186,7 +186,7 @@ Join our channel for updates:`;
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterName: 'KnightBot MD by Mr Unique Hacker',
newsletterName: 'KELIN MD',
serverMessageId: -1
}
}
Expand Down
4 changes: 2 additions & 2 deletions commands/textmaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const channelInfo = {
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterName: 'KnightBot MD',
newsletterName: 'KELIN MD',
serverMessageId: -1
}
};
Expand All @@ -20,7 +20,7 @@ const messageTemplates = {
}),
success: (text, imageUrl) => ({
image: { url: imageUrl },
caption: "GENERATED BY KNIGHT-BOT",
caption: "GENERATED BY KELIN BOT",
contextInfo: channelInfo
})
};
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ const store = {
let phoneNumber = "911234567890"
let owner = JSON.parse(fs.readFileSync('./data/owner.json'))

global.botname = "KNIGHT BOT"
global.themeemoji = ""
global.botname = "KELIN MD"
global.themeemoji = ","

const settings = require('./settings')
const pairingCode = !!phoneNumber || process.argv.includes("--pairing-code")
Expand Down Expand Up @@ -248,7 +248,7 @@ async function startXeonBotInc() {

const botNumber = XeonBotInc.user.id.split(':')[0] + '@s.whatsapp.net';
await XeonBotInc.sendMessage(botNumber, {
text: `🤖 Bot Connected Successfully!\n\n⏰ Time: ${new Date().toLocaleString()}\n✅ Status: Online and Ready!
text: ` Bot Connected Successfully!\n\n⏰ Time: ${new Date().toLocaleString()}\n✅ Status: Online and Ready!
\n✅Make sure to join below channel`,
contextInfo: {
forwardingScore: 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function addWelcome(jid, enabled, message) {
data.welcome[jid] = {
enabled: enabled,
message: message || '╔═⚔️ WELCOME ⚔️═╗\n║ 🛡️ User: {user}\n║ 🏰 Kingdom: {group}\n╠═══════════════╣\n║ 📜 Message:\n║ {description}\n╚═══════════════╝',
channelId: '120363161513685998@newsletter'

};

saveUserGroupData(data);
Expand Down
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ const videoCommand = require('./commands/video');
// Global settings
global.packname = settings.packname;
global.author = settings.author;
global.channelLink = "https://whatsapp.com/channel/0029Va90zAnIHphOuO8Msp3A";
global.ytch = "Mr Unique Hacker";
global.channelLink = "https://whatsapp.com/channel/0029VapCMAkBPzjaNnlx4k0c";
global.ytch = "KELIN MD";

// Add this near the top of main.js with other global configurations
const channelInfo = {
contextInfo: {
forwardingScore: 1,
isForwarded: true,
forwardedNewsletterMessageInfo: {
newsletterJid: '120363161513685998@newsletter',
newsletterName: 'KnightBot MD',
newsletterJid: '',
newsletterName: 'KELIN MD',
serverMessageId: -1
}
}
Expand Down