-
Notifications
You must be signed in to change notification settings - Fork 0
/
index - Copy.js
34 lines (30 loc) · 1.11 KB
/
index - Copy.js
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
const Discord = require('discord.js');
const client = new Discord.Client();
var bank = [];
client.on('ready', () => {
console.log("starting")
});
client.on('message', msg => {
var name = msg.author.username
eval(`bank.times.${name} = 0`)
if (msg.content === '!ping') {
msg.channel.send('pong');
}
else if (msg.content === '!sing'){
msg.channel.send('La la laaaaaaa! On top of old smokeeeeeeey... all covered in cheeeezee!!! I lost my poor meattttballll... when somebody sneased!');
}
else if (msg.content === '!get rich'){
eval(`if(bank.times.${name} === 1){
msg.reply('No, no, no, NO. You have gotten rich before, and that was against my will. Now, I will have my revenge! Bwa ha ha ha!!!!!')
msg.channel.send('Your bank account has been drained.')
bank.${name} = 0
}`)
msg.channel.send(`Hello ${msg.author.username}, you got $100,000,000,000 added to your account!`);
eval(`bank.${name} = 100000000000`)
eval(`bank.times.${name} = 1`)
}
else if (msg.content === '!view account'){
eval(`msg.channel.send("You have "+bank.${msg.author.username}+" dollars.");`)
}
});
client.login('');