Merge branch 'dev'
commit
b38208ddee
|
@ -41,7 +41,7 @@ export default class Apply extends Command {
|
|||
const ax = <AxiosStatic> require('axios');
|
||||
await ax({
|
||||
method: 'get',
|
||||
url: `https://api.libraryofcode.org/wh/t2?userID=${member.id}&auth=${client.config.internalKey}`,
|
||||
url: `https://api.cloud.libraryofcode.org/wh/t2?userID=${member.id}&auth=${client.config.internalKey}`,
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
|
@ -78,7 +78,7 @@ export default class Whois extends Command {
|
|||
// if (platform) embed.addField('Platform', platform, true);
|
||||
embed.addField('Joined At', `${moment(new Date(member.joinedAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||
embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
|
||||
const score = await this.client.db.Score.findOne({ userID: member.id });
|
||||
const score = await this.client.db.Score.findOne({ userID: member.id }).lean().exec();
|
||||
if (score) {
|
||||
await this.client.db.Score.updateOne({ userID: member.id }, { $addToSet: { softInquiries: { name: 'Library of Code sp-us | Bureau of Community Reports', date: new Date() } } });
|
||||
const embed2 = new RichEmbed();
|
||||
|
|
Loading…
Reference in New Issue