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

Various small fixes

This commit is contained in:
Dragory 2018-07-01 04:31:24 +03:00
parent 23c78f2c9c
commit e70f1baa27
7 changed files with 395 additions and 784 deletions

View file

@ -7,13 +7,14 @@ process.on("unhandledRejection", (reason, p) => {
});
import { Client } from "eris";
import { Knub } from "knub";
import { Knub, logger } from "knub";
import { BotControlPlugin } from "./plugins/BotControl";
import { ModActionsPlugin } from "./plugins/ModActions";
import { UtilityPlugin } from "./plugins/Utility";
import knex from "./knex";
// Run latest database migrations
logger.info("Running database migrations");
knex.migrate.latest().then(() => {
const client = new Client(process.env.TOKEN);
@ -27,5 +28,6 @@ knex.migrate.latest().then(() => {
}
});
logger.info("Starting the bot");
bot.run();
});