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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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