mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 04:55:01 +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,8 +1,8 @@
|
|||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { PluginOptions } from "knub";
|
||||
import { ConfigSchema, WelcomeMessagePluginType } from "./types";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { SendWelcomeMessageEvt } from "./events/SendWelcomeMessageEvt";
|
||||
import { ConfigSchema, WelcomeMessagePluginType } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<WelcomeMessagePluginType> = {
|
||||
config: {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { welcomeMessageEvt } from "../types";
|
||||
import { TextChannel } from "discord.js";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { renderTemplate, TemplateParseError } from "../../../templateFormatter";
|
||||
import { createChunkedMessage, stripObjectToScalars } from "../../../utils";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
|
||||
import { sendDM } from "../../../utils/sendDM";
|
||||
import { TextChannel } from "discord.js";
|
||||
import { welcomeMessageEvt } from "../types";
|
||||
|
||||
|
||||
export const SendWelcomeMessageEvt = welcomeMessageEvt({
|
||||
event: "guildMemberAdd",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, typedGuildEventListener } from "knub";
|
||||
import { tNullable } from "../../utils";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
import { tNullable } from "../../utils";
|
||||
|
||||
export const ConfigSchema = t.type({
|
||||
send_dm: t.boolean,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue