Get rid of the damn comments

merge-requests/2/merge
Bsian 2019-12-28 03:33:14 +00:00
parent 9a47286889
commit f2d250921f
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 0 additions and 43 deletions

View File

@ -45,23 +45,6 @@ export default class CreateAccount extends Command {
await this.client.util.createAccount(passHash, etcPasswd, args[2], args[0], args[1], message.author.id); await this.client.util.createAccount(passHash, etcPasswd, args[2], args[0], args[1], message.author.id);
await this.client.util.createModerationLog(args[0], message.member, 0); await this.client.util.createModerationLog(args[0], message.member, 0);
/*
const log = await new this.client.db.Moderation({
username: args[2], userID: args[0], logID: uuid(), moderatorID: message.author.id, reason: 'User requested account creation', type: 0, date: new Date(),
});
await log.save();
const embed = new RichEmbed();
embed.setTitle('Cloud Account | Create');
embed.setColor('00ff00');
embed.addField('User', `${args[2]} | <@${args[0]}>`);
embed.addField('Engineer', `<@${message.author.id}>`, true);
embed.addField('Reason', 'User requested account creation');
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
embed.setTimestamp();
// @ts-ignore
this.client.createMessage('580950455581147146', { embed });
*/
this.client.util.transport.sendMail({ this.client.util.transport.sendMail({
to: args[1], to: args[1],

View File

@ -14,32 +14,6 @@ export default function checkLock(client: Client): void {
await moderation.updateOne({ 'expiration.processed': true }); await moderation.updateOne({ 'expiration.processed': true });
await account.updateOne({ locked: false }); await account.updateOne({ locked: false });
await client.util.createModerationLog(account.userID, client.user, 3, 'Auto'); await client.util.createModerationLog(account.userID, client.user, 3, 'Auto');
/*
const mod = new client.db.Moderation({
username: account.username,
userID: account.userID,
logID: uuid(),
moderatorID: client.user.id,
reason: 'Auto',
type: 3,
date: new Date(),
});
await mod.save();
const embed = new RichEmbed();
embed.setTitle('Account Infraction | Unlock');
embed.setColor(3066993);
embed.addField('User', `${account.username} | <@${account.userID}>`, true);
embed.addField('Supervisor', 'SYSTEM', true);
embed.addField('Reason', 'Auto', true);
embed.setFooter(client.user.username, client.user.avatarURL);
embed.setTimestamp();
client.getDMChannel(account.userID).then((user) => {
// @ts-ignore
user.createMessage({ embed });
});
// @ts-ignore
client.createMessage('580950455581147146', { embed });
*/
client.signale.complete(`Unlocked account ${account.username} | Queue date at ${moderation.expiration.date.toLocaleString('en-us')}`); client.signale.complete(`Unlocked account ${account.username} | Queue date at ${moderation.expiration.date.toLocaleString('en-us')}`);
} }
}); });