mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
Added Discord attachment link reaction, fixed emoji configuration and moved util functions
This commit is contained in:
parent
a4c4b17a14
commit
592d037148
173 changed files with 1540 additions and 1170 deletions
|
@ -76,10 +76,13 @@ export async function logAndDetectMessageSpam(
|
|||
(spamConfig.mute_time && convertDelayStringToMS(spamConfig.mute_time.toString())) ?? 120 * 1000;
|
||||
|
||||
try {
|
||||
const reason = "Automatic spam detection";
|
||||
|
||||
muteResult = await mutesPlugin.muteUser(
|
||||
member.id,
|
||||
muteTime,
|
||||
"Automatic spam detection",
|
||||
reason,
|
||||
reason,
|
||||
{
|
||||
caseArgs: {
|
||||
modId: pluginData.client.user!.id,
|
||||
|
|
|
@ -40,10 +40,13 @@ export async function logAndDetectOtherSpam(
|
|||
(spamConfig.mute_time && convertDelayStringToMS(spamConfig.mute_time.toString())) ?? 120 * 1000;
|
||||
|
||||
try {
|
||||
const reason = "Automatic spam detection";
|
||||
|
||||
await mutesPlugin.muteUser(
|
||||
member.id,
|
||||
muteTime,
|
||||
"Automatic spam detection",
|
||||
reason,
|
||||
reason,
|
||||
{
|
||||
caseArgs: {
|
||||
modId: pluginData.client.user!.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue