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

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

 });

client.on('message', message => {
    if(message.content === 'ab:git'){
        message.channel.sendMessage ('Here is the github repo: https://github.com/Alee14/AleeBot');
    }

});

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

});

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

});

client.on('message', message => {
    if(message.content === 'ab:help'){
        message.channel.sendMessage ('```Commands for AleeBot!\n\nab:profile\nab:git\nab:ping\nab:pong\nab:owner```');
    }

});

client.on('message', message => {
    if(message.content === 'ab:owner'){
		message.channel.sendMessage ('The person who made this is Alee14#9928!');
    }

});

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

 client.login ('MjgyNTQ3MDI0NTQ3NTQ1MTA5.C_Tj-A.KbyWE4ZshBO0ubHEQgeMdHtQ1Ro')
 console.log('[INFO] Success! Bot is running, Logged in as ${client.user.username}!')
// WE NEED DEVELOPERS!!!!!!!!!!