pull/29/head
parent
add982a73e
commit
b3d267b328
|
@ -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}`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue