-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbot.js
More file actions
182 lines (144 loc) · 7.08 KB
/
bot.js
File metadata and controls
182 lines (144 loc) · 7.08 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
var Discord = require('discord.js');
var bot = new Discord.Client();
bot.on('ready', () =>{
console.log('dio');
})
//Exemple of function bot
bot.on('message', msg=>{
if(msg.content.toLowerCase() === "!jotaro" || msg.content.toLowerCase() === "-jotaro"){
msg.reply("DIO!");
msg.reply("Oh? You’re approaching me? Instead of running away, you’re coming right to me? Even though your grandfather, Joseph, told you the secret of The World, like an exam student scrambling to finish the problems on an exam until the last moments before the chime? I can’t beat the shit out of you without getting closer. Oh ho! Then come as close as you like.");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!koichi" || msg.content.toLowerCase() ==="-koichi"){
msg.reply("no diginity");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!kira" || msg.content.toLowerCase() ==="-kira"){
msg.reply("My name is Yoshikage Kira. I'm 33 years old. My house is in the northeast section of Morioh, where all the villas are, and I am not married. I work as an employee for the Kame Yu department stores, and I get home every day by 8 PM at the latest. I don't smoke, but I occasionally drink. I'm in bed by 11 PM, and make sure I get eight hours of sleep, no matter what. After having a glass of warm milk and doing about twenty minutes of stretches before going to bed, I usually have no problems sleeping until morning. Just like a baby, I wake up without any fatigue or stress in the morning. I was told there were no issues at my last check-up. I'm trying to explain that I'm a person who wishes to live a very quiet life. I take care not to trouble myself with any enemies, like winning and losing, that would cause me to lose sleep at night. That is how I deal with society, and I know that is what brings me happiness. Although, if I were to fight I wouldn't lose to anyone.");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!maozinha" || msg.content.toLowerCase() ==="-maozinha"){
msg.reply("I have an appointment with my doctor.");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!void" || msg.content.toLowerCase() ==="-void"){
msg.reply("Time grinds even mountains to dust.");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!marci" || msg.content.toLowerCase() ==="-marci"){
msg.reply("*whistle* *whistle*.");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!goodbye" || msg.content.toLowerCase() ==="-goodbye"){
msg.reply("GOOD BYE JOJO!");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!go" || msg.content.toLowerCase() ==="-go"){
msg.reply("Go ahead, Mr. Joestar!");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!f" || msg.content.toLowerCase() ==="-f"){
msg.channel.send("F");
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!venice" || msg.content.toLowerCase() ==="-venice"){
//Return of message function
msg.channel.send("You know Paris, France? In English, it's pronounced 'Paris' but everyone else pronounces it without the 's' sound, like the French do. But with Venezia, everyone pronouces it the English way: 'Venice'. Like The Merchant of Venice or Death in Venice. WHY, THOUGH!? WHY ISN'T THE TITLE DEATH IN VENEZIA!? ARE YOU FUCKING KIDDING ME!? IT TAKES PLACE IN ITALY, SO USE THE ITALIAN WORD, DAMMIT! THAT SHIT PISSES ME OFF! BUNCH OF DUMBASSES!");
}
})
bot.on('message', msg=>{
var things = ['Brabo', 'Interessante', 'Complicado', 'Difícil', "Ó", "Tru Chori","Tá bem até","👍🏿", "👌🏿", "Nice", "Muito Bom"];
var thing = things[Math.floor(Math.random()*things.length)];
if(msg.content.toLowerCase() ==="!uber" || msg.content.toLowerCase() ==="-uber"){
msg.channel.send('' + thing);
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!caio" || msg.content.toLowerCase() ==="-caio"){
var things = ['https://i.redd.it/hghybppwrfy21.jpg', 'https://www.nossoamorexiste.com/blog/wp-content/uploads/2017/03/2oll1l9bwheff09pvm3j3sfrq.jpg'];
var thing = things[Math.floor(Math.random()*things.length)];
msg.channel.send("", {files: ["" + thing]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!disgusting" || msg.content.toLowerCase() ==="-disgusting"){
msg.channel.send("", {files: ["https://i.kym-cdn.com/photos/images/original/001/008/025/bfb.png"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!awesome" || msg.content.toLowerCase() ==="-awesome"){
msg.channel.send("", {files: ["https://i.kym-cdn.com/entries/icons/original/000/029/711/cover6.jpg"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!culture" || msg.content.toLowerCase() ==="-culture"){
msg.channel.send("", {files: ["https://i.kym-cdn.com/photos/images/original/001/236/841/075.jpg"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!kleber" || msg.content.toLowerCase() ==="-kleber"){
var things = ["https://i.imgur.com/Pmze5fn.jpg", "https://i.imgur.com/nYQmZJ2.png"];
var thing = things[Math.floor(Math.random()*things.length)];
msg.channel.send("", {files: ["" + thing]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!peixe" || msg.content.toLowerCase() ==="-peixe"){
msg.channel.send("", {files: ["https://i.imgur.com/gVrROcH.png"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!fap" || msg.content.toLowerCase() ==="-fap"){
msg.channel.send("", {files: ["https://i.imgur.com/nMgTezY.gif"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!ohgod" || msg.content.toLowerCase() ==="-ohgod"){
msg.channel.send("", {files: ["https://i.imgur.com/X5dRSLh.gif"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!muda" || msg.content.toLowerCase() ==="-muda"){
msg.channel.send("", {files: ["https://img.fireden.net/co/image/1546/47/1546477295870.gif"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!ora" || msg.content.toLowerCase() ==="-ora"){
msg.channel.send("", {files: ["https://i.imgur.com/1wb4XCj.gif"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!wtf" || msg.content.toLowerCase() ==="-wtf"){
msg.channel.send("", {files: ["https://i.redd.it/dv7afptdh9131.jpg"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!sioux" || msg.content.toLowerCase() ==="-rods"){
msg.channel.send("", {files: ["https://i.kym-cdn.com/photos/images/original/001/446/293/e73.jpg"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!ritzar" || msg.content.toLowerCase() ==="-ritzar"){
msg.channel.send("", {files: ["https://i.imgur.com/5Avu8dO.png"]});
}
})
bot.on('message', msg=>{
if(msg.content.toLowerCase() ==="!dororo" || msg.content.toLowerCase() ==="-dororo"){
msg.channel.send("", {files: ["https://i.imgur.com/zCVBcUUl.jpg"]});
}
})
function td(x, str) {
console.info(`TD(${str}): `, JSON.stringify(x, getCircularReplacer()));
return x;
}
bot.login(process.env.BOT_TOKEN);