3
0
Fork 0
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:
Dark 2021-06-06 23:51:32 +02:00
parent a94e7593ec
commit 6ac9d2f2a2
No known key found for this signature in database
GPG key ID: 2CD6ACB6B0A87B8A
437 changed files with 1912 additions and 2027 deletions

View file

@ -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: {

View file

@ -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",

View file

@ -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,