3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +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,10 +1,10 @@
import { PluginOptions, guildPlugin } from "knub";
import { Queue } from "../../Queue";
import { GuildNicknameHistory } from "../../data/GuildNicknameHistory";
import { UsernameHistory } from "../../data/UsernameHistory";
import { CommonPlugin } from "../Common/CommonPlugin";
import { NamesCmd } from "./commands/NamesCmd";
import { NameHistoryPluginType, zNameHistoryConfig } from "./types";
import { Queue } from "../../Queue.js";
import { GuildNicknameHistory } from "../../data/GuildNicknameHistory.js";
import { UsernameHistory } from "../../data/UsernameHistory.js";
import { CommonPlugin } from "../Common/CommonPlugin.js";
import { NamesCmd } from "./commands/NamesCmd.js";
import { NameHistoryPluginType, zNameHistoryConfig } from "./types.js";
const defaultOptions: PluginOptions<NameHistoryPluginType> = {
config: {

View file

@ -1,11 +1,11 @@
import { Snowflake } from "discord.js";
import { createChunkedMessage, disableCodeBlocks } from "knub/helpers";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { MAX_NICKNAME_ENTRIES_PER_USER } from "../../../data/GuildNicknameHistory";
import { MAX_USERNAME_ENTRIES_PER_USER } from "../../../data/UsernameHistory";
import { NICKNAME_RETENTION_PERIOD } from "../../../data/cleanup/nicknames";
import { DAYS, renderUsername } from "../../../utils";
import { nameHistoryCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { MAX_NICKNAME_ENTRIES_PER_USER } from "../../../data/GuildNicknameHistory.js";
import { MAX_USERNAME_ENTRIES_PER_USER } from "../../../data/UsernameHistory.js";
import { NICKNAME_RETENTION_PERIOD } from "../../../data/cleanup/nicknames.js";
import { DAYS, renderUsername } from "../../../utils.js";
import { nameHistoryCmd } from "../types.js";
export const NamesCmd = nameHistoryCmd({
trigger: "names",

View file

@ -1,5 +1,5 @@
import { nameHistoryEvt } from "../types";
import { updateNickname } from "../updateNickname";
import { nameHistoryEvt } from "../types.js";
import { updateNickname } from "../updateNickname.js";
export const ChannelJoinEvt = nameHistoryEvt({
event: "voiceStateUpdate",

View file

@ -1,5 +1,5 @@
import { ZeppelinPluginInfo } from "../../types";
import { zNameHistoryConfig } from "./types";
import { ZeppelinPluginInfo } from "../../types.js";
import { zNameHistoryConfig } from "./types.js";
export const nameHistoryPluginInfo: ZeppelinPluginInfo = {
prettyName: "Name history",

View file

@ -1,9 +1,9 @@
import { BasePluginType, guildPluginEventListener, guildPluginMessageCommand, pluginUtils } from "knub";
import z from "zod";
import { Queue } from "../../Queue";
import { GuildNicknameHistory } from "../../data/GuildNicknameHistory";
import { UsernameHistory } from "../../data/UsernameHistory";
import { CommonPlugin } from "../Common/CommonPlugin";
import { Queue } from "../../Queue.js";
import { GuildNicknameHistory } from "../../data/GuildNicknameHistory.js";
import { UsernameHistory } from "../../data/UsernameHistory.js";
import { CommonPlugin } from "../Common/CommonPlugin.js";
export const zNameHistoryConfig = z.strictObject({
can_view: z.boolean(),

View file

@ -1,6 +1,6 @@
import { GuildMember } from "discord.js";
import { GuildPluginData } from "knub";
import { NameHistoryPluginType } from "./types";
import { NameHistoryPluginType } from "./types.js";
export async function updateNickname(pluginData: GuildPluginData<NameHistoryPluginType>, member: GuildMember) {
if (!member) return;