aboutsummaryrefslogtreecommitdiff
path: root/bot.js
blob: 418b50aec83543ce22f2d7af52556b3b64c5a4e5 (plain) (blame)
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
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('message', message => {
    if(message.content === 'aleebot:profile'){
        message.reply(message.author.avatarURL);
    }

 });

client.on('message', message => {
    if(message.content === 'aleebot:updates'){
        message.channel.sendMessage ('https://github.com/Alee14/AleeBot');
    }

});

client.on('message', message => {
    if(message.content === 'aleebot:ping'){
        message.reply('Pong! :ping_pong:');
    }

});

client.on('message', message => {
    if(message.content === 'aleebot:pong'){
        message.reply('Ping! :ping_pong:');
    }

});

client.on('message', message => {
    if(message.content === 'aleebot:help'){
        message.channel.sendMessage ('aleebot:profile\naleebot:updates\naleebot:ping\naleebot:pong\naleebot:owner');
    }

});

client.on('message', message => {
    if(message.content === 'aleebot:owner'){
        message.reply('The person who made this is Alee14!');
    }

});

client.on("ready", () => client.user.setGame("For help: aleebot:help")) 

 client.login ('token')
 console.log('[INFO] Success! Bot is running')