3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00

Ran prettier to fix style issues

This commit is contained in:
Lily Bergonzat 2024-05-12 21:34:17 +02:00
parent 893a77d562
commit 1f0c7a4349
170 changed files with 396 additions and 453 deletions

View file

@ -1,6 +1,7 @@
import { PluginOptions, guildPlugin } from "knub";
import { GuildMemberTimezones } from "../../data/GuildMemberTimezones";
import { makePublicFn } from "../../pluginUtils";
import { CommonPlugin } from "../Common/CommonPlugin";
import { ResetTimezoneCmd } from "./commands/ResetTimezoneCmd";
import { SetTimezoneCmd } from "./commands/SetTimezoneCmd";
import { ViewTimezoneCmd } from "./commands/ViewTimezoneCmd";
@ -11,7 +12,6 @@ import { getMemberTz } from "./functions/getMemberTz";
import { inGuildTz } from "./functions/inGuildTz";
import { inMemberTz } from "./functions/inMemberTz";
import { TimeAndDatePluginType, zTimeAndDateConfig } from "./types";
import { CommonPlugin } from "../Common/CommonPlugin";
const defaultOptions: PluginOptions<TimeAndDatePluginType> = {
config: {

View file

@ -1,4 +1,3 @@
import { CommonPlugin } from "../../Common/CommonPlugin";
import { getGuildTz } from "../functions/getGuildTz";
import { timeAndDateCmd } from "../types";
@ -11,6 +10,9 @@ export const ResetTimezoneCmd = timeAndDateCmd({
async run({ pluginData, message }) {
await pluginData.state.memberTimezones.reset(message.author.id);
const serverTimezone = getGuildTz(pluginData);
void pluginData.state.common.sendSuccessMessage(message, `Your timezone has been reset to server default, **${serverTimezone}**`);
void pluginData.state.common.sendSuccessMessage(
message,
`Your timezone has been reset to server default, **${serverTimezone}**`,
);
},
});

View file

@ -2,7 +2,6 @@ import { escapeInlineCode } from "discord.js";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { trimLines } from "../../../utils";
import { parseFuzzyTimezone } from "../../../utils/parseFuzzyTimezone";
import { CommonPlugin } from "../../Common/CommonPlugin";
import { timeAndDateCmd } from "../types";
export const SetTimezoneCmd = timeAndDateCmd({

View file

@ -4,8 +4,8 @@ import z from "zod";
import { GuildMemberTimezones } from "../../data/GuildMemberTimezones";
import { keys } from "../../utils";
import { zValidTimezone } from "../../utils/zValidTimezone";
import { defaultDateFormats } from "./defaultDateFormats";
import { CommonPlugin } from "../Common/CommonPlugin";
import { defaultDateFormats } from "./defaultDateFormats";
const zDateFormatKeys = z.enum(keys(defaultDateFormats) as U.ListOf<keyof typeof defaultDateFormats>);