Browse Source

l

push-params
Evan Feenstra 5 years ago
parent
commit
1c55a04df8
  1. 10
      api/bots/mother.ts
  2. 10
      dist/api/bots/mother.js
  3. 2
      dist/api/bots/mother.js.map

10
api/bots/mother.ts

@ -111,7 +111,13 @@ export function init() {
.setDescription('No bots found')
return message.channel.send({ embed })
}
console.log("==? SEARHED BOTS", bots)
console.log("==? SEARHED BOTS", bots, bots.map(b=> {
const maxLength = 35
const value = b.description.length>maxLength ?
b.description.substr(0,maxLength)+'...' :
b.description
return {name:b.unique_name, value}
}))
const embed3 = new Sphinx.MessageEmbed()
.setAuthor('MotherBot')
.setTitle('Bots:')
@ -120,7 +126,7 @@ export function init() {
const value = b.description.length>maxLength ?
b.description.substr(0,maxLength)+'...' :
b.description
return {name:b.unique_name, value}
return ({name:b.unique_name, value})
}))
.setThumbnail(botSVG)
message.channel.send({ embed:embed3 })

10
dist/api/bots/mother.js

@ -119,7 +119,13 @@ function init() {
.setDescription('No bots found');
return message.channel.send({ embed });
}
console.log("==? SEARHED BOTS", bots);
console.log("==? SEARHED BOTS", bots, bots.map(b => {
const maxLength = 35;
const value = b.description.length > maxLength ?
b.description.substr(0, maxLength) + '...' :
b.description;
return { name: b.unique_name, value };
}));
const embed3 = new Sphinx.MessageEmbed()
.setAuthor('MotherBot')
.setTitle('Bots:')
@ -128,7 +134,7 @@ function init() {
const value = b.description.length > maxLength ?
b.description.substr(0, maxLength) + '...' :
b.description;
return { name: b.unique_name, value };
return ({ name: b.unique_name, value });
}))
.setThumbnail(botSVG);
message.channel.send({ embed: embed3 });

2
dist/api/bots/mother.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save