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 { CooldownManager, PluginOptions } from "knub";
|
||||
import { SelfGrantableRolesPluginType, ConfigSchema, defaultSelfGrantableRoleEntry } from "./types";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { trimPluginDescription } from "../../utils";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { RoleAddCmd } from "./commands/RoleAddCmd";
|
||||
import { RoleRemoveCmd } from "./commands/RoleRemoveCmd";
|
||||
import { RoleHelpCmd } from "./commands/RoleHelpCmd";
|
||||
import { RoleRemoveCmd } from "./commands/RoleRemoveCmd";
|
||||
import { ConfigSchema, defaultSelfGrantableRoleEntry, SelfGrantableRolesPluginType } from "./types";
|
||||
|
||||
const defaultOptions: PluginOptions<SelfGrantableRolesPluginType> = {
|
||||
config: {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { getApplyingEntries } from "../util/getApplyingEntries";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { splitRoleNames } from "../util/splitRoleNames";
|
||||
import { normalizeRoleNames } from "../util/normalizeRoleNames";
|
||||
import { findMatchingRoles } from "../util/findMatchingRoles";
|
||||
|
||||
import { memberRolesLock } from "../../../utils/lockNameHelpers";
|
||||
import { Role } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { memberRolesLock } from "../../../utils/lockNameHelpers";
|
||||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { findMatchingRoles } from "../util/findMatchingRoles";
|
||||
import { getApplyingEntries } from "../util/getApplyingEntries";
|
||||
import { normalizeRoleNames } from "../util/normalizeRoleNames";
|
||||
import { splitRoleNames } from "../util/splitRoleNames";
|
||||
|
||||
|
||||
export const RoleAddCmd = selfGrantableRolesCmd({
|
||||
trigger: ["role", "role add"],
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { asSingleLine, trimLines } from "../../../utils";
|
||||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { getApplyingEntries } from "../util/getApplyingEntries";
|
||||
|
||||
export const RoleHelpCmd = selfGrantableRolesCmd({
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { getApplyingEntries } from "../util/getApplyingEntries";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { splitRoleNames } from "../util/splitRoleNames";
|
||||
import { normalizeRoleNames } from "../util/normalizeRoleNames";
|
||||
import { findMatchingRoles } from "../util/findMatchingRoles";
|
||||
import { memberRolesLock } from "../../../utils/lockNameHelpers";
|
||||
import { selfGrantableRolesCmd } from "../types";
|
||||
import { findMatchingRoles } from "../util/findMatchingRoles";
|
||||
import { getApplyingEntries } from "../util/getApplyingEntries";
|
||||
import { normalizeRoleNames } from "../util/normalizeRoleNames";
|
||||
import { splitRoleNames } from "../util/splitRoleNames";
|
||||
|
||||
export const RoleRemoveCmd = selfGrantableRolesCmd({
|
||||
trigger: "role remove",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, typedGuildCommand, CooldownManager } from "knub";
|
||||
import { BasePluginType, CooldownManager, typedGuildCommand } from "knub";
|
||||
|
||||
const RoleMap = t.record(t.string, t.array(t.string));
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { TSelfGrantableRoleEntry, SelfGrantableRolesPluginType } from "../types";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { SelfGrantableRolesPluginType, TSelfGrantableRoleEntry } from "../types";
|
||||
|
||||
export async function getApplyingEntries(
|
||||
pluginData: GuildPluginData<SelfGrantableRolesPluginType>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue