Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasSchaut committed Nov 1, 2021
1 parent e8c648a commit ba2b484
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion db/db_init.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const sequelize = new Sequelize('database', 'username', 'password', {

// get all models and save it into DB.<file_name>
const DB = {}
const normalized_path = path.join(__dirname, "\\models\\")
const normalized_path = path.join(__dirname, "models")
fs.readdirSync(normalized_path).forEach(function (file_path) {
const file = require("./models/" + file_path)
const file_name = file_path.substring(0, file_path.lastIndexOf('.'))
Expand Down
2 changes: 0 additions & 2 deletions js/slash_commands/option_models/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ module.exports = [
"required": false,
"choices": [
{ "name": "help", "value": "help" },
{ "name": "reload", "value": "reload" },
{ "name": "lang", "value": "lang" },
{ "name": "prefix", "value": "prefix" },
{ "name": "echo", "value": "echo" },
{ "name": "ping", "value": "ping" },
]
Expand Down

0 comments on commit ba2b484

Please sign in to comment.