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:
parent
23c78f2c9c
commit
e70f1baa27
7 changed files with 395 additions and 784 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue