3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Centralize DM logic, don't attempt DMs for an hour after a 20026 error

This commit is contained in:
Dragory 2020-08-21 03:44:38 +03:00
parent 1d4c32d8f9
commit 902be16ae8
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
5 changed files with 60 additions and 16 deletions

View file

@ -47,6 +47,7 @@
"CLEAN": "🚿 {userMention(mod)} cleaned **{count}** message(s) in {channelMention(channel)}\n{archiveUrl}",
"CASE_CREATE": "✏ {userMention(mod)} manually created new **{caseType}** case (#{caseNum})",
"CASE_DELETE": "✂️ **Case #{case.case_number}** was deleted by {userMention(mod)}",
"MASSBAN": "⚒ {userMention(mod)} massbanned {count} users",
"MASSMUTE": "📢🚫 {userMention(mod)} massmuted {count} users",
@ -63,10 +64,9 @@
"POSTED_SCHEDULED_MESSAGE": "\uD83D\uDCE8 Posted scheduled message (`{messageId}`) to {channelMention(channel)} as scheduled by {userMention(author)}",
"BOT_ALERT": "⚠ **BOT ALERT:** {tmplEval(body)}",
"DM_FAILED": "\uD83D\uDEA7 Failed to send DM ({source}) to {userMention(user)}",
"AUTOMOD_ACTION": "\uD83E\uDD16 Automod rule **{rule}** triggered by {userMention(users)}\n{matchSummary}\nActions taken: **{actionsTaken}**",
"SET_ANTIRAID_USER": "⚔ {userMention(user)} set anti-raid to **{level}**",
"SET_ANTIRAID_AUTO": "⚔ Anti-raid automatically set to **{level}**",
"CASE_DELETE": "✂️ **Case #{case.case_number}** was deleted by {userMention(mod)}"
"SET_ANTIRAID_AUTO": "⚔ Anti-raid automatically set to **{level}**"
}