changes to queue limiter
parent
024db2aa84
commit
f70492e059
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue