3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-08 00:05:01 +00:00

feat: fix leap year rules, add year and month to the delay string

This commit is contained in:
Ruby 2025-01-03 15:12:43 +01:00
parent 504ffd729d
commit 5c0602715d
No known key found for this signature in database
GPG key ID: E0BDFAF7AE9E0531
28 changed files with 64 additions and 55 deletions

View file

@ -1,5 +1,5 @@
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
import humanizeDuration from "humanize-duration";
import { humanizeDuration } from "../../../../humanizeDuration.js";
import { GuildPluginData } from "knub";
import { getMemberLevel } from "knub/helpers";
import { CaseTypes } from "../../../../data/CaseTypes.js";

View file

@ -2,7 +2,7 @@ import { Attachment, ChatInputCommandInteraction, GuildMember, Message, Snowflak
import { GuildPluginData } from "knub";
import { CaseTypes } from "../../../../data/CaseTypes.js";
import { LogType } from "../../../../data/LogType.js";
import { humanizeDurationShort } from "../../../../humanizeDurationShort.js";
import { humanizeDurationShort } from "../../../../humanizeDuration.js";
import { canActOn, getContextChannel, isContextInteraction, sendContextResponse } from "../../../../pluginUtils.js";
import { DAYS, MINUTES, SECONDS, noop } from "../../../../utils.js";
import { CasesPlugin } from "../../../Cases/CasesPlugin.js";

View file

@ -1,5 +1,5 @@
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
import humanizeDuration from "humanize-duration";
import { humanizeDuration } from "../../../../humanizeDuration.js";
import { GuildPluginData } from "knub";
import { ERRORS, RecoverablePluginError } from "../../../../RecoverablePluginError.js";
import { logger } from "../../../../logger.js";

View file

@ -1,5 +1,5 @@
import { Attachment, ChatInputCommandInteraction, GuildMember, Message, User } from "discord.js";
import humanizeDuration from "humanize-duration";
import { humanizeDuration } from "../../../../humanizeDuration.js";
import { GuildPluginData } from "knub";
import { UnknownUser, asSingleLine, renderUsername } from "../../../../utils.js";
import { MutesPlugin } from "../../../Mutes/MutesPlugin.js";

View file

@ -1,5 +1,5 @@
import { DiscordAPIError, Snowflake } from "discord.js";
import humanizeDuration from "humanize-duration";
import { humanizeDuration } from "../../../humanizeDuration.js";
import { GuildPluginData } from "knub";
import { CaseTypes } from "../../../data/CaseTypes.js";
import { LogType } from "../../../data/LogType.js";

View file

@ -1,5 +1,5 @@
import { Snowflake } from "discord.js";
import humanizeDuration from "humanize-duration";
import { humanizeDuration } from "../../../humanizeDuration.js";
import { GuildPluginData } from "knub";
import moment from "moment-timezone";
import { CaseTypes } from "../../../data/CaseTypes.js";