3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Config schema and docs text changes. Fix clickable tab area in dashboard/docs.

This commit is contained in:
Dragory 2019-10-11 02:09:31 +03:00
parent def46941c9
commit 3a876fe1f0
5 changed files with 35 additions and 8 deletions

View file

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

View file

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