change offer to preqal
parent
6f72ef9668
commit
526e5cda31
|
@ -3,11 +3,11 @@ import jwt from 'jsonwebtoken';
|
|||
import { Message } from 'eris';
|
||||
import { Client, Command } from '../class';
|
||||
|
||||
export default class Score extends Command {
|
||||
export default class Offer extends Command {
|
||||
constructor(client: Client) {
|
||||
super(client);
|
||||
this.name = 'offer';
|
||||
this.description = 'Pre-approves a member for an offer. Will run a hard-pull automatically on acceptance.';
|
||||
this.description = 'Pre-qualifies a member for an offer. Will run a hard-pull automatically on acceptance.';
|
||||
this.usage = `${this.client.config.prefix}offer <member> <name of offer>:<department/service for hard pull>`;
|
||||
this.permissions = 4;
|
||||
this.aliases = ['qualify'];
|
||||
|
@ -40,7 +40,7 @@ export default class Score extends Command {
|
|||
date: new Date(),
|
||||
}, this.client.config.internalKey, { expiresIn: '12h' });
|
||||
this.client.getDMChannel(member.user.id).then((chan) => {
|
||||
chan.createMessage(`__**Offer Pre-Approval**__\nYou have been pre-approved for an offer! If you wish to accept this offer, please enter the offer code at https://report.libraryofcode.org/. Do not share this code with anyone else. This offer automatically expires in 12 hours. Your report will be Hard Inquiried immediately after accepting this offer.\n\n**Department:** ${dept.toUpperCase()}\n**Offer for:** ${name}\n\n\`${token}\``);
|
||||
chan.createMessage(`__**Offer Pre-Qualified**__\nYou have been pre-approved for an offer! If you wish to accept this offer, please enter the offer code at https://report.libraryofcode.org/. Do not share this code with anyone else. This offer automatically expires in 12 hours. Your report will be Hard Inquiried immediately after accepting this offer.\n\n**Department:** ${dept.toUpperCase()}\n**Offer for:** ${name}\n\n\`${token}\``);
|
||||
}).catch(() => this.error(message.channel, 'Could not DM member.'));
|
||||
return this.success(message.channel, `Offer sent.\n\n\`${token}\``);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue