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

Fix username change logging and saving. Re-enable migrations.

This commit is contained in:
Dragory 2019-05-03 23:31:38 +03:00
parent 1b1ae98714
commit e231faf51f
12 changed files with 255 additions and 119 deletions

View file

@ -91,11 +91,12 @@ import { errorMessage, successMessage } from "./utils";
import { ZeppelinPlugin } from "./plugins/ZeppelinPlugin";
import { customArgumentTypes } from "./customArgumentTypes";
import { startUptimeCounter } from "./uptime";
import { UsernameSaver } from "./plugins/UsernameSaver";
// Run latest database migrations
logger.info("Running database migrations");
connect().then(async conn => {
// await conn.runMigrations();
await conn.runMigrations();
const client = new Client(`Bot ${process.env.TOKEN}`, {
getAllUsers: true,
@ -137,7 +138,7 @@ connect().then(async conn => {
RemindersPlugin,
],
globalPlugins: [BotControlPlugin, LogServerPlugin],
globalPlugins: [BotControlPlugin, LogServerPlugin, UsernameSaver],
options: {
getEnabledPlugins(guildId, guildConfig): string[] {