aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-25 23:41:00 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-25 23:41:00 -0400
commit0d216be080226b34c66d133f6191fd3cdca6eb8d (patch)
tree42a935a2d021bb481826d24f2614bb4fad0b9656 /aleebot.js
parent2307cd0ceefec766fe7b83b4996d0995afba8a47 (diff)
downloadAleeBot-APF-0d216be080226b34c66d133f6191fd3cdca6eb8d.tar.gz
AleeBot-APF-0d216be080226b34c66d133f6191fd3cdca6eb8d.tar.bz2
AleeBot-APF-0d216be080226b34c66d133f6191fd3cdca6eb8d.zip
Added "AI", and docker files
Diffstat (limited to 'aleebot.js')
-rwxr-xr-xaleebot.js60
1 files changed, 57 insertions, 3 deletions
diff --git a/aleebot.js b/aleebot.js
index c561fae..0e42392 100755
--- a/aleebot.js
+++ b/aleebot.js
@@ -40,14 +40,68 @@ function botActivity(client) {
});
}
-client.once('ready', async () => {
+client.once('ready', () => {
console.log("[SUCCESS] AleeBot is now ready!");
- await botActivity(client);
+ botActivity(client);
+
+ setInterval(function() {
+ botActivity(client);
+ }, 200000);
});
client.on('messageCreate', message => {
- let args = message.content.split(" ").slice(1);
+ 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()}`);