aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
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()}`);