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

Organise all imports, make Mutes depend on Logs

This commit is contained in:
Dark 2021-06-06 23:51:32 +02:00
parent a94e7593ec
commit 6ac9d2f2a2
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
437 changed files with 1912 additions and 2027 deletions

View file

@ -1,19 +1,18 @@
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
import { ConfigSchema, TimeAndDatePluginType } from "./types";
import { GuildMemberTimezones } from "../../data/GuildMemberTimezones";
import { PluginOptions } from "knub";
import { GuildMemberTimezones } from "../../data/GuildMemberTimezones";
import { mapToPublicFn } from "../../pluginUtils";
import { trimPluginDescription } from "../../utils";
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
import { ResetTimezoneCmd } from "./commands/ResetTimezoneCmd";
import { SetTimezoneCmd } from "./commands/SetTimezoneCmd";
import { ViewTimezoneCmd } from "./commands/ViewTimezoneCmd";
import { defaultDateFormats } from "./defaultDateFormats";
import { Tail } from "../../utils/typeUtils";
import { inGuildTz } from "./functions/inGuildTz";
import { mapToPublicFn } from "../../pluginUtils";
import { getDateFormat } from "./functions/getDateFormat";
import { getGuildTz } from "./functions/getGuildTz";
import { getMemberTz } from "./functions/getMemberTz";
import { getDateFormat } from "./functions/getDateFormat";
import { inGuildTz } from "./functions/inGuildTz";
import { inMemberTz } from "./functions/inMemberTz";
import { ResetTimezoneCmd } from "./commands/ResetTimezoneCmd";
import { trimPluginDescription } from "../../utils";
import { ConfigSchema, TimeAndDatePluginType } from "./types";
const defaultOptions: PluginOptions<TimeAndDatePluginType> = {
config: {

View file

@ -1,7 +1,6 @@
import { timeAndDateCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { sendSuccessMessage } from "../../../pluginUtils";
import { getGuildTz } from "../functions/getGuildTz";
import { timeAndDateCmd } from "../types";
export const ResetTimezoneCmd = timeAndDateCmd({
trigger: "timezone reset",

View file

@ -1,9 +1,8 @@
import { timeAndDateCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
import { isValidTimezone } from "../../../utils/isValidTimezone";
import { disableInlineCode, trimLines } from "../../../utils";
import { parseFuzzyTimezone } from "../../../utils/parseFuzzyTimezone";
import { timeAndDateCmd } from "../types";
export const SetTimezoneCmd = timeAndDateCmd({
trigger: "timezone",

View file

@ -1,8 +1,5 @@
import { timeAndDateCmd } from "../types";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { sendSuccessMessage } from "../../../pluginUtils";
import { getMemberTz } from "../functions/getMemberTz";
import { getGuildTz } from "../functions/getGuildTz";
import { timeAndDateCmd } from "../types";
export const ViewTimezoneCmd = timeAndDateCmd({
trigger: "timezone",

View file

@ -1,5 +1,4 @@
import { GuildPluginData } from "knub";
import { ZeppelinGuildConfig } from "../../../types";
import { TimeAndDatePluginType } from "../types";
export function getGuildTz(pluginData: GuildPluginData<TimeAndDatePluginType>) {

View file

@ -1,6 +1,6 @@
import { GuildPluginData } from "knub";
import { TimeAndDatePluginType } from "../types";
import moment from "moment-timezone";
import { TimeAndDatePluginType } from "../types";
import { getGuildTz } from "./getGuildTz";
export function inGuildTz(pluginData: GuildPluginData<TimeAndDatePluginType>, input?: moment.Moment | number) {

View file

@ -1,7 +1,6 @@
import { GuildPluginData } from "knub";
import { TimeAndDatePluginType } from "../types";
import moment from "moment-timezone";
import { getGuildTz } from "./getGuildTz";
import { TimeAndDatePluginType } from "../types";
import { getMemberTz } from "./getMemberTz";
export async function inMemberTz(

View file

@ -1,7 +1,7 @@
import * as t from "io-ts";
import { tNullable, tPartialDictionary } from "../../utils";
import { BasePluginType, typedGuildCommand } from "knub";
import { GuildMemberTimezones } from "../../data/GuildMemberTimezones";
import { tNullable, tPartialDictionary } from "../../utils";
import { tValidTimezone } from "../../utils/tValidTimezone";
import { defaultDateFormats } from "./defaultDateFormats";