add bot name modularity

This commit is contained in:
41666 2019-03-21 04:51:09 -05:00
parent a4c15f2d78
commit f4b4b63faa
3 changed files with 20 additions and 2 deletions

View file

@ -109,7 +109,9 @@ class Roleypoly {
this.ctx.sql = sequelize
this.M = fetchModels(sequelize)
this.ctx.M = this.M
await sequelize.sync()
if (!process.env.DB_NO_SYNC) {
await sequelize.sync()
}
this.ctx.server = new ServerService(this.ctx)
this.ctx.discord = new DiscordService(this.ctx)