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:
parent
a94e7593ec
commit
6ac9d2f2a2
437 changed files with 1912 additions and 2027 deletions
|
@ -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: {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { ZeppelinGuildConfig } from "../../../types";
|
||||
import { TimeAndDatePluginType } from "../types";
|
||||
|
||||
export function getGuildTz(pluginData: GuildPluginData<TimeAndDatePluginType>) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue