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,8 +1,8 @@
|
|||
import { postCmd } from "../types";
|
||||
import { TextChannel } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { postCmd } from "../types";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
import { TextChannel } from "discord.js";
|
||||
|
||||
export const EditCmd = postCmd({
|
||||
trigger: "edit",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { postCmd } from "../types";
|
||||
import { MessageEmbed, TextChannel } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
|
||||
import { trimLines } from "../../../utils";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
import { parseColor } from "../../../utils/parseColor";
|
||||
import { rgbToInt } from "../../../utils/rgbToInt";
|
||||
import { MessageEmbed, TextChannel } from "discord.js";
|
||||
import { postCmd } from "../types";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
|
||||
|
||||
const COLOR_MATCH_REGEX = /^#?([0-9a-f]{6})$/;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { postCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { postCmd } from "../types";
|
||||
import { actualPostCmd } from "../util/actualPostCmd";
|
||||
|
||||
export const PostCmd = postCmd({
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { postCmd } from "../types";
|
||||
import { MessageEmbedOptions } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { actualPostCmd } from "../util/actualPostCmd";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
|
||||
import { isValidEmbed, trimLines } from "../../../utils";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
import { parseColor } from "../../../utils/parseColor";
|
||||
import { rgbToInt } from "../../../utils/rgbToInt";
|
||||
import { MessageEmbed, MessageEmbedOptions } from "discord.js";
|
||||
import { postCmd } from "../types";
|
||||
import { actualPostCmd } from "../util/actualPostCmd";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
|
||||
|
||||
export const PostEmbedCmd = postCmd({
|
||||
trigger: "post_embed",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { postCmd } from "../types";
|
||||
import { sorter } from "../../../utils";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { sorter } from "../../../utils";
|
||||
import { postCmd } from "../types";
|
||||
|
||||
export const ScheduledPostsDeleteCmd = postCmd({
|
||||
trigger: ["scheduled_posts delete", "scheduled_posts d"],
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
import { postCmd } from "../types";
|
||||
import {
|
||||
trimLines,
|
||||
sorter,
|
||||
disableCodeBlocks,
|
||||
deactivateMentions,
|
||||
createChunkedMessage,
|
||||
DBDateFormat,
|
||||
} from "../../../utils";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import moment from "moment-timezone";
|
||||
import {
|
||||
createChunkedMessage,
|
||||
DBDateFormat, deactivateMentions, disableCodeBlocks, sorter, trimLines
|
||||
} from "../../../utils";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||
import { postCmd } from "../types";
|
||||
|
||||
const SCHEDULED_POST_PREVIEW_TEXT_LENGTH = 50;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { postCmd } from "../types";
|
||||
import { sorter } from "../../../utils";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { postMessage } from "../util/postMessage";
|
||||
import { TextChannel } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
import { sorter } from "../../../utils";
|
||||
import { postCmd } from "../types";
|
||||
import { postMessage } from "../util/postMessage";
|
||||
|
||||
export const ScheduledPostsShowCmd = postCmd({
|
||||
trigger: ["scheduled_posts", "scheduled_posts show"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue