1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Noinkin
e01b46a0c8
Merge f537958dc0 into 80a2e9ddef 2024-04-16 23:28:25 -07:00
toast-ts
80a2e9ddef Remove unnecessary text in leaderboard graph 2024-04-17 10:55:42 +10:00
Noinkin
f537958dc0
(SPAM) Should change required for punishment to 8 2024-04-14 15:52:22 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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];
}
},