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

chore: esm imports

This will make merging this into 'next' much easier.
This commit is contained in:
Dragory 2024-08-11 21:58:52 +03:00
parent 1f0c7a4349
commit 45e3fe2ef0
No known key found for this signature in database
798 changed files with 3633 additions and 3633 deletions

View file

@ -1,13 +1,13 @@
import { PluginOptions, guildPlugin } from "knub";
import { onGuildEvent } from "../../data/GuildEvents";
import { GuildReminders } from "../../data/GuildReminders";
import { CommonPlugin } from "../Common/CommonPlugin";
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
import { RemindCmd } from "./commands/RemindCmd";
import { RemindersCmd } from "./commands/RemindersCmd";
import { RemindersDeleteCmd } from "./commands/RemindersDeleteCmd";
import { postReminder } from "./functions/postReminder";
import { RemindersPluginType, zRemindersConfig } from "./types";
import { onGuildEvent } from "../../data/GuildEvents.js";
import { GuildReminders } from "../../data/GuildReminders.js";
import { CommonPlugin } from "../Common/CommonPlugin.js";
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin.js";
import { RemindCmd } from "./commands/RemindCmd.js";
import { RemindersCmd } from "./commands/RemindersCmd.js";
import { RemindersDeleteCmd } from "./commands/RemindersDeleteCmd.js";
import { postReminder } from "./functions/postReminder.js";
import { RemindersPluginType, zRemindersConfig } from "./types.js";
const defaultOptions: PluginOptions<RemindersPluginType> = {
config: {

View file

@ -1,10 +1,10 @@
import humanizeDuration from "humanize-duration";
import moment from "moment-timezone";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { registerUpcomingReminder } from "../../../data/loops/upcomingRemindersLoop";
import { convertDelayStringToMS, messageLink } from "../../../utils";
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
import { remindersCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { registerUpcomingReminder } from "../../../data/loops/upcomingRemindersLoop.js";
import { convertDelayStringToMS, messageLink } from "../../../utils.js";
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin.js";
import { remindersCmd } from "../types.js";
export const RemindCmd = remindersCmd({
trigger: ["remind", "remindme", "reminder"],

View file

@ -1,8 +1,8 @@
import humanizeDuration from "humanize-duration";
import moment from "moment-timezone";
import { createChunkedMessage, DBDateFormat, sorter } from "../../../utils";
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
import { remindersCmd } from "../types";
import { createChunkedMessage, DBDateFormat, sorter } from "../../../utils.js";
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin.js";
import { remindersCmd } from "../types.js";
export const RemindersCmd = remindersCmd({
trigger: "reminders",

View file

@ -1,7 +1,7 @@
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { clearUpcomingReminder } from "../../../data/loops/upcomingRemindersLoop";
import { sorter } from "../../../utils";
import { remindersCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { clearUpcomingReminder } from "../../../data/loops/upcomingRemindersLoop.js";
import { sorter } from "../../../utils.js";
import { remindersCmd } from "../types.js";
export const RemindersDeleteCmd = remindersCmd({
trigger: ["reminders delete", "reminders d"],

View file

@ -2,9 +2,9 @@ import { HTTPError, Snowflake } from "discord.js";
import { GuildPluginData } from "knub";
import { disableLinkPreviews } from "knub/helpers";
import moment from "moment-timezone";
import { Reminder } from "../../../data/entities/Reminder";
import { DBDateFormat } from "../../../utils";
import { RemindersPluginType } from "../types";
import { Reminder } from "../../../data/entities/Reminder.js";
import { DBDateFormat } from "../../../utils.js";
import { RemindersPluginType } from "../types.js";
export async function postReminder(pluginData: GuildPluginData<RemindersPluginType>, reminder: Reminder) {
const channel = pluginData.guild.channels.cache.get(reminder.channel_id as Snowflake);

View file

@ -1,5 +1,5 @@
import { ZeppelinPluginInfo } from "../../types";
import { zRemindersConfig } from "./types";
import { ZeppelinPluginInfo } from "../../types.js";
import { zRemindersConfig } from "./types.js";
export const remindersPluginInfo: ZeppelinPluginInfo = {
prettyName: "Reminders",

View file

@ -1,7 +1,7 @@
import { BasePluginType, guildPluginMessageCommand, pluginUtils } from "knub";
import z from "zod";
import { GuildReminders } from "../../data/GuildReminders";
import { CommonPlugin } from "../Common/CommonPlugin";
import { GuildReminders } from "../../data/GuildReminders.js";
import { CommonPlugin } from "../Common/CommonPlugin.js";
export const zRemindersConfig = z.strictObject({
can_use: z.boolean(),