mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Config schema and docs text changes. Fix clickable tab area in dashboard/docs.
This commit is contained in:
parent
f41d280fab
commit
0bbe9433c1
5 changed files with 35 additions and 8 deletions
|
@ -353,7 +353,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
public static pluginInfo: PluginInfo = {
|
||||
prettyName: "Automod",
|
||||
description: trimPluginDescription(`
|
||||
This plugin allows you to specify automated actions in response to triggers. Example use cases include word filtering and spam prevention.
|
||||
Allows specifying automated actions in response to triggers. Example use cases include word filtering and spam prevention.
|
||||
`),
|
||||
configurationGuide: trimPluginDescription(`
|
||||
The automod plugin is very customizable. For a full list of available triggers, actions, and their options, see Config schema at the bottom of this page.
|
||||
|
|
|
@ -2,14 +2,14 @@ import { ZeppelinPlugin } from "./ZeppelinPlugin";
|
|||
import { decorators as d, IPluginOptions } from "knub";
|
||||
import { Member, TextChannel } from "eris";
|
||||
import { renderTemplate } from "../templateFormatter";
|
||||
import { createChunkedMessage, stripObjectToScalars } from "../utils";
|
||||
import { createChunkedMessage, stripObjectToScalars, tNullable } from "../utils";
|
||||
import { LogType } from "../data/LogType";
|
||||
import { GuildLogs } from "../data/GuildLogs";
|
||||
import * as t from "io-ts";
|
||||
|
||||
const ConfigSchema = t.type({
|
||||
send_dm: t.boolean,
|
||||
send_to_channel: t.string,
|
||||
send_to_channel: tNullable(t.string),
|
||||
message: t.string,
|
||||
});
|
||||
type TConfigSchema = t.TypeOf<typeof ConfigSchema>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue