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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
/****************************************
*
* AleeBot and AleeMod for AleeArmy Community
* Copyright (C) 2017 Alee14
*
* This script is made by Alee14 and other people.
* Some stuff was made by Victor Tran (vicr123) and swawesome95 (no longer a dev).
* Please say thanks to swawesome95 to laying the basics of this bot and thanks for vicr123 for
* letting me use some of his source code.
*
* *************************************/
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
const config = require('./abtoken.json');
var prefix = "ab:";
const activities = [
{ name: 'AleeBot 4.0.0', type: 0 },
{ name: 'Annoy Alee', type: 0 },
{ name: 'AleeOS or ShiftOS', type: 0 },
{ name: 'being very cool', type: 0 },
{ name: 'with a Android device', type: 0 },
{ name: 'da VMware World!', type: 0 },
{ name: 'AleeCraft', type: 0 },
{ name: 'AleeChat', type: 0 },
{ name: 'For help ab:help', type: 0 },
{ name: `on ${client.guilds.size} servers`, type: 0 }
];
function botActivity(client) {
const activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setPresence({
activities: [{
name: activity.name,
type: activity.type
}],
status: 'online'
});
}
client.once('ready', () => {
console.log("[SUCCESS] AleeBot is now ready!");
botActivity(client);
setInterval(function() {
botActivity(client);
}, 200000);
});
client.on('messageCreate', message => {
const args = message.content.slice(`${message.client.user}`.length).trim();
if (message.mentions.everyone) return;
if (message.mentions.has(message.client.user)) {
if (!args) {
switch (Math.floor (Math.random() * 1000) % 3) {
case 0:
message.reply('What do you want?');
break;
case 1:
message.reply('Yes?');
break;
case 2:
message.reply('What do you want?');
break;
}
}
if (args.toLowerCase().includes('hello')) {
return message.reply('How are you doing?')
}
if (args.toLowerCase().includes('?') || args.toLowerCase().includes('what')) {
switch (Math.floor(Math.random() * 1000) % 3) {
case 0:
message.reply('What are you talking about?');
break;
case 1:
message.reply('Hmm?');
break;
case 2:
message.reply('Sausages.');
break;
}
}
if (args.toLowerCase().includes('love') || args.toLowerCase().includes('<3') || args.toLowerCase().includes(':heart:')) {
switch (Math.floor(Math.random() * 1000) % 3) {
case 0:
message.reply('Thank you!');
break;
case 1:
message.reply('Thanks :)');
break;
case 2:
message.reply('Aww, thanks!');
break;
}
}
}
if(message.content === prefix + 'profile'){
message.reply(`${message.author.avatarURL()}`);
}
if(message.content === prefix + 'git'){
message.reply('Here is the github repo: https://github.com/Alee14/AleeBot');
}
if(message.content === prefix + 'ping'){
message.reply('Pong! :ping_pong:');
}
if(message.content === prefix + 'pong'){
message.reply('Ping! :ping_pong:');
}
if(message.content === prefix + 'help'){
var commands = ('```AleeBot 4.0\n');
commands +=('Copyright 2017-2025 Andrew Lee\n\n')
commands +=('Commands for AleeBot!\n\n')
commands += (prefix + 'profile\n')
commands += (prefix + 'git\n')
commands += (prefix + 'ping\n')
commands += (prefix + 'pong\n')
commands += (prefix + 'owner\n')
commands += (prefix + 'suggest\n')
commands += (prefix + 'plan\n')
commands += (prefix + 'mod\n')
commands += (prefix + 'version\n\n')
commands += ('Created by: Alee and swawesome95 (former developer)\n')
commands += ('Modified in: April 1st 2025```')
message.channel.send(commands);
}
if(message.content === prefix + 'owner'){
message.reply('The person who made this is Alee14#9928!');
}
if(message.content === prefix + 'suggest'){
message.reply('Sorry this feature is still being worked on :(');
}
if(message.content === prefix + 'plan'){
message.channel.send ('```Plans for future versions of AleeBot\n\n' +
'1. AI\n' +
'2. Playing Music\n' +
"3. Error Handler\n```");
}
if(message.content === prefix + 'mod'){
message.reply("This is working progress if you want to help do **"+prefix+"git** then go to the site and start a pull request")
message.channel.send ('```Commands for Staff!\n\n' +
'ab:kick Kicks people\n' +
'ab:ban Bans People\n' +
"ab:rm Removes the message with a amount\n" +
'Please note that we are still working on this feature!```');
}
if(message.content === prefix + 'version') {
message.channel.send("AleeBot's version is 4.0.0.");
}
if (message.content.trim().toLowerCase() === 'aleebot sucks') {
switch (Math.floor(Math.random() * 1000) % 3) {
case 0:
message.reply('Why you hate me .-.');
break;
case 1:
message.reply('Okay but why you hate me?');
break;
}
}
});
client.login (config.token).catch(function() {
console.log("[ERROR] Login failed.");
});
|