pull/29/head
Matthew 2020-11-10 13:15:06 -05:00
parent add982a73e
commit b3d267b328
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export default class Apply extends Command {
const ax = <AxiosStatic> require('axios'); const ax = <AxiosStatic> require('axios');
await ax({ await ax({
method: 'get', 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}`,
}); });
}, },
}); });

View File

@ -78,7 +78,7 @@ export default class Whois extends Command {
// if (platform) embed.addField('Platform', platform, true); // 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('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); 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) { 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() } } }); 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(); const embed2 = new RichEmbed();