mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 13:25:03 +00:00
Update to Knub 14.0.0 and make changes to plugins accordingly
This commit is contained in:
parent
4a33932ffa
commit
b0cd8762f1
19 changed files with 57 additions and 25 deletions
41
src/index.ts
41
src/index.ts
|
@ -75,29 +75,30 @@ connect().then(async conn => {
|
|||
const basePlugins = ["message_saver", "cases", "mutes"];
|
||||
|
||||
const bot = new Knub(client, {
|
||||
plugins: {
|
||||
plugins: [
|
||||
// Base plugins (always enabled)
|
||||
message_saver: MessageSaverPlugin,
|
||||
cases: CasesPlugin,
|
||||
mutes: MutesPlugin,
|
||||
MessageSaverPlugin,
|
||||
CasesPlugin,
|
||||
MutesPlugin,
|
||||
|
||||
// Regular plugins
|
||||
utility: UtilityPlugin,
|
||||
mod_actions: ModActionsPlugin,
|
||||
logs: LogsPlugin,
|
||||
post: PostPlugin,
|
||||
reaction_roles: ReactionRolesPlugin,
|
||||
censor: CensorPlugin,
|
||||
persist: PersistPlugin,
|
||||
spam: SpamPlugin,
|
||||
tags: TagsPlugin,
|
||||
slowmode: SlowmodePlugin,
|
||||
starboard: StarboardPlugin
|
||||
},
|
||||
globalPlugins: {
|
||||
bot_control: BotControlPlugin,
|
||||
log_server: LogServerPlugin
|
||||
},
|
||||
UtilityPlugin,
|
||||
ModActionsPlugin,
|
||||
LogsPlugin,
|
||||
PostPlugin,
|
||||
ReactionRolesPlugin,
|
||||
CensorPlugin,
|
||||
PersistPlugin,
|
||||
SpamPlugin,
|
||||
TagsPlugin,
|
||||
SlowmodePlugin,
|
||||
StarboardPlugin
|
||||
],
|
||||
|
||||
globalPlugins: [
|
||||
BotControlPlugin,
|
||||
LogServerPlugin
|
||||
],
|
||||
|
||||
options: {
|
||||
getEnabledPlugins(guildId, guildConfig): string[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue