mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45: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 { PluginOptions } from "knub";
|
||||
import { ConfigSchema, PingableRolesPluginType } from "./types";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { GuildPingableRoles } from "../../data/GuildPingableRoles";
|
||||
import { PingableRoleEnableCmd } from "./commands/PingableRoleEnableCmd";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { PingableRoleDisableCmd } from "./commands/PingableRoleDisableCmd";
|
||||
import { PingableRoleEnableCmd } from "./commands/PingableRoleEnableCmd";
|
||||
import { MessageCreateDisablePingableEvt, TypingEnablePingableEvt } from "./events/ChangePingableEvts";
|
||||
import { ConfigSchema, PingableRolesPluginType } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<PingableRolesPluginType> = {
|
||||
config: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { pingableRolesCmd } from "../types";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { pingableRolesCmd } from "../types";
|
||||
|
||||
export const PingableRoleDisableCmd = pingableRolesCmd({
|
||||
trigger: ["pingable_role disable", "pingable_role d"],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { pingableRolesCmd } from "../types";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { pingableRolesCmd } from "../types";
|
||||
|
||||
export const PingableRoleEnableCmd = pingableRolesCmd({
|
||||
trigger: "pingable_role",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { pingableRolesEvt } from "../types";
|
||||
import { getPingableRolesForChannel } from "../utils/getPingableRolesForChannel";
|
||||
import { enablePingableRoles } from "../utils/enablePingableRoles";
|
||||
import { disablePingableRoles } from "../utils/disablePingableRoles";
|
||||
import { enablePingableRoles } from "../utils/enablePingableRoles";
|
||||
import { getPingableRolesForChannel } from "../utils/getPingableRolesForChannel";
|
||||
|
||||
const TIMEOUT = 10 * 1000;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, typedGuildCommand, typedGuildEventListener } from "knub";
|
||||
import { GuildPingableRoles } from "../../data/GuildPingableRoles";
|
||||
import { PingableRole } from "../../data/entities/PingableRole";
|
||||
import { GuildPingableRoles } from "../../data/GuildPingableRoles";
|
||||
|
||||
export const ConfigSchema = t.type({
|
||||
can_manage: t.boolean,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { PingableRolesPluginType } from "../types";
|
||||
|
||||
export function disablePingableRoles(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { PingableRolesPluginType } from "../types";
|
||||
|
||||
export function enablePingableRoles(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { PingableRole } from "../../../data/entities/PingableRole";
|
||||
import { PingableRolesPluginType } from "../types";
|
||||
|
||||
export async function getPingableRolesForChannel(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue