mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Compare commits
3 Commits
9184ab1061
...
e01b46a0c8
Author | SHA1 | Date | |
---|---|---|---|
|
e01b46a0c8 | ||
|
80a2e9ddef | ||
|
f537958dc0 |
@ -126,7 +126,7 @@ export default class CanvasBuilder {
|
||||
this.ctx.fillText(type === 'leaderboard' ? '0 msgs' : '0', origin[0] + size[0] + textSize / 2, origin[1] + size[1] + (textSize / 3));
|
||||
|
||||
// 30 day (minute for /mp players)
|
||||
this.ctx.fillText(type === 'leaderboard' ? '30 days ago' : '30 mins ago', lastStart, origin[1] - (textSize / 2));
|
||||
this.ctx.fillText(type === 'players' ? '30 mins ago' : '', lastStart, origin[1] - (textSize / 2));
|
||||
|
||||
// Time
|
||||
this.ctx.fillText('time ->', origin[0] + (textSize / 2), origin[1] + size[1] + (textSize));
|
||||
|
@ -50,7 +50,7 @@ export default class MessageCreate {
|
||||
automodded = true;
|
||||
message.delete().catch(()=>Logger.console('log', `${automodLog}MessageSpam`, automodFailReason));
|
||||
message.channel.send('Spamming is not cool, slow down!').then(x=>setTimeout(()=>x.delete(), 15000));
|
||||
await Automoderator.repeatedMessages(client, message, 'mute', 30000, 6, 'spam', '30m', 'Message spam');
|
||||
await Automoderator.repeatedMessages(client, message, 'mute', 5000, 2 'spam', '30m', 'Message spam');
|
||||
delete client.repeatedMessages[message.author.id];
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user