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

Add SelfGrantableRoles

This commit is contained in:
Dragory 2019-02-19 00:02:46 +02:00
parent 8cb382979b
commit 457d57fb8c
6 changed files with 368 additions and 5 deletions

View file

@ -72,6 +72,7 @@ import { StarboardPlugin } from "./plugins/Starboard";
import { NameHistoryPlugin } from "./plugins/NameHistory";
import { AutoReactions } from "./plugins/AutoReactions";
import { PingableRoles } from "./plugins/PingableRoles";
import { SelfGrantableRoles } from "./plugins/SelfGrantableRoles";
// Run latest database migrations
logger.info("Running database migrations");
@ -79,7 +80,7 @@ connect().then(async conn => {
await conn.runMigrations();
const client = new Client(process.env.TOKEN, {
getAllUsers: true
getAllUsers: true,
});
client.setMaxListeners(100);
@ -112,7 +113,8 @@ connect().then(async conn => {
SlowmodePlugin,
StarboardPlugin,
AutoReactions,
PingableRoles
PingableRoles,
SelfGrantableRoles,
],
globalPlugins: [BotControlPlugin, LogServerPlugin],
@ -149,9 +151,9 @@ connect().then(async conn => {
performanceDebug: {
enabled: true,
size: 30,
threshold: 200
}
}
threshold: 200,
},
},
});
logger.info("Starting the bot");