-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
678 lines (579 loc) · 26.9 KB
/
index.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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
const Discord = require('discord.js');
const client = new Discord.Client();
const { prefix, token, RiotToken } = require('./config.json');
const champions = require('./champions.json');
const fetch = require("node-fetch");
const ytdl = require('ytdl-core');
var CronJob = require('cron').CronJob;
//const rp = require('request-promise');
//(.?"name":")([A-Z]?[a-z][^"]?\s?[A-Z]?[a-z]*)
let dispatcher
let championsarray = [];
for (x in champions) {
championsarray.push(x)
}
let championsmarksman = [];
for (x in champions) {
if( (champions[x].tags[0] == 'Marksman')|| (champions[x].tags[1] == 'Marksman'))
{
championsmarksman.push(x)
}
}
function reroll(array){
return array[Math.floor(Math.random()*( array.length))]
}
function shuffle(array) {
for (let i = array.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1)); // random index from 0 to i
[array[i], array[j]] = [array[j], array[i]]; // swap elements
}
}
let status;
let respuesta;
function getgame(name){
return new Promise (function (resolve,reject){
fetch(`https://euw1.api.riotgames.com/lol/summoner/v4/summoners/by-name/${name}`, {headers: {
"X-Riot-Token": RiotToken
}})
.then(function(response) {
return response.json();
})
.then(function(json) {
console.log("json1",json);
console.log("json2",json.id)
fetch(`https://euw1.api.riotgames.com/lol/spectator/v4/active-games/by-summoner/${json.id}`, {headers: {
"X-Riot-Token": RiotToken
}}).then(function(response) {
status=response.status//403 o 404 o 200
return response.json();
})
.then(function(json) {
console.log(json);
let compañeros=[];
let compañerostable= [];
if(status==200)
{
console.log(json);
console.log("respuesta", respuesta)
console.log("respuesta", json.participants)
json.participants.map(item=> {
compañeros.push(item.summonerName)
})
compañeros.map(compañero => {
compañerostable.push(compañero + ' '.repeat(16-compañero.length))
})
console.log(compañerostable)
respuesta = "Esta jugando, y lleva: " + (json.gameLength/60).toPrecision(4) + " minutos, con: "+ `\`\`\`
+-----------------------------------------------------------------------------+
| VS |
+--------------------------------------+--------------------------------------+
| ${compañerostable[0]} | ${compañerostable[5]} |
+--------------------------------------+--------------------------------------+
| ${compañerostable[1]} | ${compañerostable[6]} |
+--------------------------------------+--------------------------------------+
| ${compañerostable[2]} | ${compañerostable[7]} |
+--------------------------------------+--------------------------------------+
| ${compañerostable[3]} | ${compañerostable[8]} |
+--------------------------------------+--------------------------------------+
| ${compañerostable[4]} | ${compañerostable[9]} |
+--------------------------------------+--------------------------------------+\`\`\``+compañeros.slice(0,5)+" vs " + compañeros.slice(5,10);
}
else if(status==404){
respuesta = "no esta jugando ahora mismo"
}
else if(status==403){
respuesta = "la key caducó D:"
}
console.log(respuesta)
resolve(respuesta);
});
});
})
};
async function getjoke(){
return new Promise (function (resolve,reject){
fetch("https://icanhazdadjoke.com/", {
headers: {
Accept: "application/json"
}
})
.then(function(response) {
return response.json();
})
.then(function(json) {
console.log(json)
resolve(json.joke)
})
})
};
// const requestOptions = {
// method: 'GET',
// uri: 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest',
// qs: {
// 'symbol': 'XLM'
// },
// headers: {
// 'X-CMC_PRO_API_KEY': '3fa83039-a5cb-4de1-aeec-e38b0a2a22a4'
// },
// json: true,
// gzip: true
// };
// async function getXlm(){
// return new Promise (function (resolve,reject){
// rp(requestOptions)
// .then(function(json) {
// console.log(json.data )
// resolve(json.symbols)
// })
// })
// };
async function getXlm(){
return new Promise (function (resolve,reject){
fetch("https://apiv2.bitcoinaverage.com/indices/local/ticker/XLMEUR", {
headers: {
//'X-CMC_PRO_API_KEY': '3fa83039-a5cb-4de1-aeec-e38b0a2a22a4'
}
})
.then(function(response) {
return response.json();
})
.then(function(json) {
console.log(json)
resolve(json)
})
})
};
let rolesarray =['Fighter', 'Tank', 'Assassin','Mage', 'Support', 'Marksman']
client.once('ready', () => {
console.log('Ready!');
var guild = client.guilds.get('269766159665070080');
var job = new CronJob('00 00 00 * * *', function() {
// do something
if(guild && guild.channels.get('269766159665070080')){
guild.channels.get('269766159665070080').send("pole");
guild.channels.get('269766159665070080').send("LA POLE IS OVER");
}
}, function () {
/* This function is executed when the job stops */
},
true, /* Start the job right now */
"Europe/Madrid" /* Time zone of this job. */
);
});
client.login(token);
client.on('message', message => {
//if (!message.content.startsWith(prefix) ) return;
//message.react(client.emojis.find(emoji => emoji.name === "Titirititi"))
if (message.author.username==""||message.author.username=="")
{
return message.channel.send(`${message.author} <:DansGame:443432789552136194> 👉 🚪 `);
}
if ( (message.author.id==201830981437620225) && (message.content.includes("pole")||message.content.includes("Pole")) ){
message.delete(1);
message.channel.send(`Se solicita al señor ${message.author} que pare de ser un pepeg@`);
message.channel.send(`Pole`);
}
if (message.content.includes("pepega")||message.content.includes("Pepega")|| (message.content.replace(/\s/g, '')).includes("pepega") )
message.channel.send(`Se solicita al señor ${message.author} que pare de usar pepeg@, por el bien de todos, en caso reiterado se le baneará de bot :)`);
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
switch (command) {
case "randomizer":
if (message.mentions.users.size!=5) {
return message.channel.send(`Hay 5 invocadores en la grieta EMPANAO`);
}
let summonerlist = message.mentions.users.map(user => user.username);
shuffle(summonerlist)
message.channel.send(`Top: ${summonerlist[0]}, Mid: ${summonerlist[1]}, Jungler: ${summonerlist[2]}, Adc: ${summonerlist[3]}, Support: ${summonerlist[4]} `)
// send the entire array of strings as a message
// by default, discord.js will `.join()` the array with `\n`
break;
case "megarandomizer":
if (message.mentions.users.size!=5) {
return message.channel.send(`Hay 5 invocadores en la grieta EMPANAO`);
}
let summonerlist2 = message.mentions.users.map(user => user.discriminator);
shuffle(summonerlist2)
masarrayquenunca = [];
masarrayquenunca.push(rolesarray[Math.floor(Math.random()*(3))]) //top
masarrayquenunca.push(rolesarray[Math.floor(Math.random()*(2))+2])//mid
masarrayquenunca.push(rolesarray[Math.floor(Math.random()*(3))])//jungler
masarrayquenunca.push(rolesarray[5])//adc
masarrayquenunca.push(rolesarray[4]) //supp
console.log(masarrayquenunca)
championarray = []
masarrayquenunca.map(function (rol){
let championsrol2 = [];
console.log('hg', rol)
for (x in champions) {
if( (champions[x].tags[0] == rol)|| (champions[x].tags[1] == rol))
{
championsrol2.push(x)//CAMBIAR CGHAMPIONROL2 POR CUSTOM
}
}
championarray.push(championsrol2[Math.floor(Math.random()*( championsrol2.length))])
})
message.channel.send(`Top: ${message.mentions.users.find(user => user.discriminator==summonerlist2[0])} con el champ: ${championarray[0]} \n Mid: ${message.mentions.users.find(user => user.discriminator==summonerlist2[1])},con el champ: ${championarray[1]}\n Jungler: ${message.mentions.users.find(user => user.discriminator==summonerlist2[2])},con el champ: ${championarray[2]}\n Adc: ${message.mentions.users.find(user => user.discriminator==summonerlist2[3])},con el champ: ${championarray[3]}\n Support: ${message.mentions.users.find(user => user.discriminator==summonerlist2[4])} con el champ: ${championarray[4]}`)
// send the entire array of strings as a message
// by default, discord.js will `.join()` the array with `\n`
break;
case "megarandomizer2":
if (!args.length) {
return message.channel.send(`You didn't provide any arguments, ${message.author}!`);
}
if (args.length!=5) {
console.log(args.length,5)
message.channel.send(`EMPANAO`, {tts: true});
return message.channel.send(`Hay 5 invocadores en la grieta EMPANAO`,);
}
shuffle(args)
masarrayquenunca2 = [];
masarrayquenunca2.push(rolesarray[Math.floor(Math.random()*(3))]) //top
masarrayquenunca2.push(rolesarray[Math.floor(Math.random()*(2))+2])//mid
masarrayquenunca2.push(rolesarray[Math.floor(Math.random()*(3))])//jungler
masarrayquenunca2.push(rolesarray[5])//adc
masarrayquenunca2.push(rolesarray[4]) //supp
console.log(masarrayquenunca2)
championarray2 = []
masarrayquenunca2.map(function (rol){
let championsrol2 = [];
console.log('hg', rol)
for (x in champions) {
if( (champions[x].tags[0] == rol)|| (champions[x].tags[1] == rol))
{
championsrol2.push(x)
}
}
let champ = championsrol2[Math.floor(Math.random()*( championsrol2.length))]
let same = championarray2.includes(champ)
while (same){
champ=reroll(championsrol2);
same = championarray2.includes(champ)
}
championarray2.push(champ)
})
message.channel.send(`Top: ${args[0]} con el champ: ${championarray2[0]} \n Mid: ${args[1]},con el champ: ${championarray2[1]}\n Jungler: ${args[2]},con el champ: ${championarray2[2]}\n Adc: ${args[3]},con el champ: ${championarray2[3]}\n Support: ${args[4]} con el champ: ${championarray2[4]}`)
// send the entire array of strings as a message
// by default, discord.js will `.join()` the array with `\n`
break;
case "randomrol":
if (args.length!=1)
return message.channel.send(`Tiene que poner uno de estos, señor ${message.author}!, ${rolesarray}`);
let thisrol = args[0].charAt(0).toUpperCase() + args[0].substring(1);
if (!rolesarray.includes(thisrol) ) {
return message.channel.send(`Tiene que poner uno de estos, señor ${message.author}!, ${rolesarray}`);
}
let championsrol = [];
for (x in champions) {
if( (champions[x].tags[0] == thisrol)|| (champions[x].tags[1] == thisrol))
{
championsrol.push(x)
}
}
let randomrol = Math.floor(Math.random()*( championsrol.length))
message.channel.send(`${message.author}, tu champeón és: ${championsrol[randomrol]}`)
break
case "amigos?":
message.channel.send('hay alguien ahí?', {tts: true})
break;
case "olo":
message.channel.send('olooooooooooo cabesaboloooo', {tts: true})
break;
case "emojis":
message.guild.emojis.forEach(customEmoji => {
console.log(`Reacting with custom emoji: ${customEmoji.name} (${customEmoji.id})`)
//receivedMessage.react(customEmoji)
// message.channel.send(`<:${customEmoji.name}:${customEmoji.id}>`, {tts: true})
// let customEmoji = receivedMessage.guild.emojis.get(emojiId)
//receivedMessage.react(customEmoji)
})
break;
case "bonanit":
message.channel.send('buenas noches gente', {tts: true});
case "thx":
message.channel.send('^^');
break;
case "prueba":
console.log(message.author)
if(message.author.id==322027225195216896)
message.channel.send('ajaaa jesus');
else
message.channel.send('no jesus');
break;
case "bonanit":
message.channel.send('buenas noches gente', {tts: true});
case "musica":
if (!args.length) {
return message.channel.send(`pon la url joder, de youtube si puede ser, ${message.author}!`);
}
if (message.channel.type !== 'text') return;
const { voiceChannel } = message.member;
if (!voiceChannel) {
return message.reply('please join a voice channel first!');
}
voiceChannel.join().then(connection => {
const stream = ytdl(args[0], { filter: 'audioonly' });
dispatcher = connection.playStream(stream);
dispatcher.on('end', () => voiceChannel.leave());
});
break;
case "parayaa":
dispatcher.end();
break;
case "para":
return message.reply("LYRICS: \n\nWe're no strangers to love \nYou know the rules and so do I \nA full commitment's what I'm thinking of \nYou wouldn't get this from any other guy \nI just wanna tell you how I'm feeling \nGotta make you understand \nNever gonna give you up \nNever gonna let you down \nNever gonna run around and desert you \nNever gonna make you cry \nNever gonna say goodbye \nNever gonna tell a lie and hurt you \nWe've known each other for so long \nYour heart's been aching but you're too shy to say it \nInside we both know what's been going on \nWe know the game and we're gonna play it \nAnd if you ask me how I'm feeling \nDon't tell me you're too blind to see \nNever gonna give you up \nNever gonna let you down \nNever gonna run around and desert you \nNever gonna make you cry \nNever gonna say goodbye \nNever gonna… ");
break;
case "noporfa":
case "randomchamp":
let random = Math.floor(Math.random()*( championsarray.length))
message.channel.send(`${message.author}, tu champeón és: ${championsarray[random]}`)
break;
case "Beep":
message.channel.send('Boop.');
break;
case "pagalacocaenric":
message.channel.send('https://www.patreon.com/himebot');
break;
case "pepega":
message.channel.send(`<:DansGame:443432789552136194> <a:lul3d:598393366379757568> `);
break;
case "gif":
message.channel.send(`https://cdn.discordapp.com/emojis/598393366379757568.gif`);
break;
case "emoji":
console.log(client.emojis)
let emojiguay = client.emojis.find(emoji => emoji.name === args[0])
message.channel.send(` ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} ${emojiguay} `);
break;
case "rule34":
console.log(client.emojis)
let emojiguay2 = client.emojis.find(emoji => emoji.name === "FeelsWeirderMan")
message.channel.send(` ${emojiguay2} `);
break;
case "weebsout":
message.channel.send(`<:DansGame:443432789552136194> 👉 🚪 `);
break;
case "randomizer2":
console.log(args, args.length)
if (!args.length) {
return message.channel.send(`You didn't provide any arguments, ${message.author}!`);
}
if (args.length!=5) {
console.log(args.length,5)
message.channel.send(`EMPANAO`, {tts: true});
return message.channel.send(`Hay 5 invocadores en la grieta EMPANAO`,);
}
shuffle(args);
message.channel.send(`Top: ${args[0]}, Mid: ${args[1]}, Jungler: ${args[2]}, Adc: ${args[3]}, Support: ${args[4]}`, {tts: true})
// send the entire array of strings as a message
// by default, discord.js will `.join()` the array with `\n`
break;
case "randonizer2":
console.log(args, args.length)
if (!args.length) {
return message.channel.send(`You didn't provide any arguments, ${message.author}!`);
}
if (args.length!=5) {
console.log(args.length,5)
message.channel.send(`EMPANAO`, {tts: true});
return message.channel.send(`Hay 5 invocadores en la grieta EMPANAO`,);
}
shuffle(args);
let index= args.indexOf('litowl');
if (index != -1){
[args[4], args[index]] = [args[index], args[4]]; // swap elements
}
message.channel.send(`Top: ${args[0]}, Mid: ${args[1]}, Jungler: ${args[2]}, Adc: ${args[3]}, Support: ${args[4]}`)
// send the entire array of strings as a message
// by default, discord.js will `.join()` the array with `\n`
break;
case "help":
console.log(message.author.id,message.author.username)//enric 136167415171121152
message.channel.send('a pedir help en tu puta casa :)', {tts: true});
break;
case "commands":
console.log(message.author.id,message.author.username)//enric 136167415171121152
message.channel.send(' jugandolol -arguments: summoner name --> dice si esta jugando, cuanto tiempo y con quién ^^ \nrandomizer -arguments: 5 menciones --> random linea \n megarandomizer -arguments: 5 menciones --> random linea + random champ\n randomizer2 -arguments: escribir 5 nombres --> linea random cada uno \n randomchamp --> champ random \n randomrol -arguments: rol --> random champ de ese rol \n musica -arguments: URL youtube \n para --> para la musica <:Pepega:494501983705628703> \n pagalacocaenric \n weebsout \n pepega \n adictaduramanodura \n caracruz -arugments: nada o 2 opciones \n dados \n david \n jesusdejaelbotytrabaja \n amigos? \n olo \n bonanit \n !help', {tts: true});
break;
case "nsfw":
message.channel.send('No se fer wilipolleces :)', {tts: true});
break;
case "pepegasloop":
message.channel.send('<:Pepega:494501983705628703> loop', {tts: true});
break;
case "evo":
message.channel.send('https://www.twitch.tv/evo');
break;
// case "elimina":
// if(message.author.id==136168127602884608 && (args[0]!=2))
// message.channel.send('a eliminar a tu puta casa');
// else{
// //console.log(message.author)
// let amount = parseInt(args[0]);
// message.channel.bulkDelete(amount);
// }
// break;
case "felicitar":
if (message.author.id==136168127602884608||message.author.discriminator==3505)
message.channel.send('a eliminar a tu puta casa');
else{
let member = message.mentions.members.first();
if(member.id==356919606964781056)
message.channel.send('no se peude felicitar a enric');
else{
let member = message.mentions.members.first();
member.kick();
}
}
break;
case "nopasamemes":
const role = message.guild.roles.find(role => role.name === 'No pasar memes per general');
const member = message.mentions.members.first();
member.addRole(role);
break;
case "sipasamemes":
const role2 = message.guild.roles.find(role => role.name === 'No pasar memes per general');
const member2 = message.mentions.members.first();
member2.removeRole(role2);
break;
case "adictaduramanodura":
for ( let i = 0; i<1; i++){
const webAttachment = new Discord.Attachment('https://cdn.discordapp.com/attachments/269766159665070080/606873473867972608/unknown.png')
message.channel.send(webAttachment)
}
break;
case "caracruz":
let moneda=Math.floor(Math.random() * 2);
if (args.length== 2)
{
if(moneda ==0)
message.channel.send(args[0]);
else
message.channel.send(args[1]);
}
else{
if(moneda ==0)
message.channel.send('CARA');
else
message.channel.send('CRUZ');
}
break;
case "jugandolol":
let sumname;
args.forEach((arg,i) => {
if ( i ==0)
sumname = arg;
else
sumname= sumname+ " "+ arg
});
getgame(sumname).then(function(respuesa){
message.channel.send(respuesta)
})
break;
case "chistako":
getjoke().then(function(respuesta){
message.channel.send(respuesta)
})
break;
case "dados":
message.channel.send(2);
break;
case "david":
message.channel.send("Tus PDV estan al máximo ahora");
break;
case "jesusdejaelbotytrabaja":
message.channel.send("voooooooooy ):");
break;
case "joan":
message.channel.send("joan es tonto :)");
break;
case "carapito":
let idjoan= client.users.find("username","Joan").id
//let idjoan = client.users.get("name", "Joan");
message.channel.send(`<@${idjoan}>`);
break;
case "getinhere":
let getinhere;
client.users.forEach(function(value){
getinhere+= `<@${value.id}> `
})
message.channel.send(getinhere);
break;
case "estonto":
let idjoan2= client.users.find("username","Joan").id
if (message.author.username == "Joan")
message.channel.send(`<@${idjoan2}> tú eres tonto .)`);
else
message.channel.send(`<@${idjoan2}> ES tonto .)`);
break;
case "react":
message.channel.fetchMessages({
limit: args[0],
}).then((messages) => {
var i = 0;
messages.forEach(function(message) {
i++;
if (i == args[0]) {
message.react(client.emojis.find(emoji => emoji.name === args[1])).catch(console.error);
message.channel.bulkDelete(1);
}
})
});
//message.react(client.emojis.find(emoji => emoji.name === "Titirititi"))
break;
case "reactmucho":
message.channel.fetchMessages({
limit: args[0],
}).then((messages) => {
var i = 0;
messages.forEach(function(message) {
i++;
//if (i == args[0]) {
message.react(client.emojis.find(emoji => emoji.name === args[1])).catch(console.error);
//}
})
message.channel.bulkDelete(1);
});
//message.react(client.emojis.find(emoji => emoji.name === "Titirititi"))
break;
case "reactmucho":
message.channel.fetchMessages({
limit: args[0],
}).then((messages) => {
var i = 0;
messages.forEach(function(message) {
i++;
//if (i == args[0]) {
message.react(client.emojis.find(emoji => emoji.name === args[1])).catch(console.error);
//}
})
message.channel.bulkDelete(1);
});
//message.react(client.emojis.find(emoji => emoji.name === "Titirititi"))
break;
case "reactid":
message.channel.fetchMessage(args[0]).then(messageid => {
messageid.react(client.emojis.find(emoji => emoji.name === args[1])).catch(console.error);
})
message.channel.bulkDelete(1);
//message.react(client.emojis.find(emoji => emoji.name === "Titirititi"))
break;
case "xlm":
getXlm().then(function(respuesta){
let preciodia = respuesta.changes.percent.day;
if (preciodia > 0){
preciodia = "+"+preciodia
}
let respuestatexto = `\`\`\`diff
${preciodia}% hoy
Actual: ${respuesta.bid}€
En total tienes: ${respuesta.bid*688}€ \`\`\``;
message.channel.send(respuestatexto)
})
break;
default:
message.channel.send( "repeat plox" );
}
});
//champion pool,. y separada por lineas S