forked from mruniquehacker/KnightBot-Mini
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
89 lines (78 loc) · 3.18 KB
/
config.js
File metadata and controls
89 lines (78 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* Global Configuration for WhatsApp MD Bot
*/
module.exports = {
// Bot Owner Configuration
ownerNumber: ['91xxxxxxxxxxx','917023951514'], // Add your number without + or spaces (e.g., 919876543210)
ownerName: ['Knight Bot Mini', 'Professor'], // Owner names corresponding to ownerNumber array
// Bot Configuration
botName: 'Knight Bot Mini',
prefix: '.',
sessionName: 'session',
sessionID: process.env.SESSION_ID || '',
newsletterJid: '120363161513685998@newsletter', // Newsletter JID for menu forwarding
updateZipUrl: 'https://github.com/mruniquehacker/KnightBot-Mini/archive/refs/heads/main.zip', // URL to latest code zip for .update command
// Sticker Configuration
packname: 'Knight Bot Mini',
// Bot Behavior
selfMode: false, // Private mode - only owner can use commands
autoRead: false,
autoTyping: false,
autoBio: false,
autoSticker: false,
autoReact: false,
autoReactMode: 'bot', // set bot or all via cmd
autoDownload: false,
// Group Settings Defaults
defaultGroupSettings: {
antilink: false,
antilinkAction: 'delete', // 'delete', 'kick', 'warn'
antitag: false,
antitagAction: 'delete',
antiall: false, // Owner only - blocks all messages from non-admins
antiviewonce: false,
antibot: false,
anticall: false, // Anti-call feature
antigroupmention: false, // Anti-group mention feature
antigroupmentionAction: 'delete', // 'delete', 'kick'
welcome: false,
welcomeMessage: '╭╼━≪•𝙽𝙴𝚆 𝙼𝙴𝙼𝙱𝙴𝚁•≫━╾╮\n┃𝚆𝙴𝙻𝙲𝙾𝙼𝙴: @user 👋\n┃Member count: #memberCount\n┃𝚃𝙸𝙼𝙴: time⏰\n╰━━━━━━━━━━━━━━━╯\n\n*@user* Welcome to *@group*! 🎉\n*Group 𝙳𝙴𝚂𝙲𝚁𝙸𝙿𝚃𝙸𝙾𝙽*\ngroupDesc\n\n> *ᴘᴏᴡᴇʀᴇᴅ ʙʏ botName*',
goodbye: false,
goodbyeMessage: 'Goodbye @user 👋 We will never miss you!',
antiSpam: false,
antidelete: false,
nsfw: false,
detect: false,
chatbot: false,
autosticker: false // Auto-convert images/videos to stickers
},
// API Keys (add your own)
apiKeys: {
// Add API keys here if needed
openai: '',
deepai: '',
remove_bg: ''
},
// Message Configuration
messages: {
wait: '⏳ Please wait...',
success: '✅ Success!',
error: '❌ Error occurred!',
ownerOnly: '👑 This command is only for bot owner!',
adminOnly: '🛡️ This command is only for group admins!',
groupOnly: '👥 This command can only be used in groups!',
privateOnly: '💬 This command can only be used in private chat!',
botAdminNeeded: '🤖 Bot needs to be admin to execute this command!',
invalidCommand: '❓ Invalid command! Type .menu for help'
},
// Timezone
timezone: 'Asia/Kolkata',
// Limits
maxWarnings: 3,
// Social Links (optional)
social: {
github: 'https://github.com/mruniquehacker',
instagram: 'https://instagram.com/yourusername',
youtube: 'http://youtube.com/@mr_unique_hacker'
}
};