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,10 +1,10 @@
|
|||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { ConfigSchema, MessageSaverPluginType } from "./types";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
import { PluginOptions } from "knub";
|
||||
import { MessageCreateEvt, MessageDeleteBulkEvt, MessageDeleteEvt, MessageUpdateEvt } from "./events/SaveMessagesEvts";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { SaveMessagesToDBCmd } from "./commands/SaveMessagesToDB";
|
||||
import { SavePinsToDBCmd } from "./commands/SavePinsToDB";
|
||||
import { MessageCreateEvt, MessageDeleteBulkEvt, MessageDeleteEvt, MessageUpdateEvt } from "./events/SaveMessagesEvts";
|
||||
import { ConfigSchema, MessageSaverPluginType } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<MessageSaverPluginType> = {
|
||||
config: {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { messageSaverCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { saveMessagesToDB } from "../saveMessagesToDB";
|
||||
import { sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { saveMessagesToDB } from "../saveMessagesToDB";
|
||||
import { messageSaverCmd } from "../types";
|
||||
|
||||
export const SaveMessagesToDBCmd = messageSaverCmd({
|
||||
trigger: "save_messages_to_db",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { messageSaverCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { saveMessagesToDB } from "../saveMessagesToDB";
|
||||
import { sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { saveMessagesToDB } from "../saveMessagesToDB";
|
||||
import { messageSaverCmd } from "../types";
|
||||
|
||||
export const SavePinsToDBCmd = messageSaverCmd({
|
||||
trigger: "save_pins_to_db",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MessageSaverPluginType } from "./types";
|
||||
import { Message, TextChannel } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { TextChannel, Message } from "discord.js";
|
||||
import { MessageSaverPluginType } from "./types";
|
||||
|
||||
export async function saveMessagesToDB(
|
||||
pluginData: GuildPluginData<MessageSaverPluginType>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue