changes to queue limiter

pull/29/head
Matthew 2020-10-31 00:15:47 -04:00
parent 024db2aa84
commit f70492e059
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export default class Queue {
constructor(client: Client) { constructor(client: Client) {
this.client = client; this.client = client;
this.queues = { this.queues = {
score: new Bull('score'), score: new Bull('score', { prefix: 'queue::score', limiter: { max: 80, duration: 1000 } }),
}; };
this.setProcessors(); this.setProcessors();
} }
@ -67,7 +67,7 @@ export default class Queue {
const embed = new RichEmbed(); const embed = new RichEmbed();
embed.setTitle('Application Decision'); embed.setTitle('Application Decision');
embed.addField('Status', application.decision, true); embed.addField('Status', application.decision, true);
embed.addField('UserID', job.data.userID, true); embed.addField('User ID', job.data.userID, true);
embed.addField('Job ID', job.id.toString(), true); embed.addField('Job ID', job.id.toString(), true);
embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setFooter(this.client.user.username, this.client.user.avatarURL);
embed.setTimestamp(); embed.setTimestamp();