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

Fix issues caused by @shared tsconfig path

This commit is contained in:
Dragory 2019-11-08 00:03:02 +02:00
parent 53ed83b701
commit 9390b164d8
8 changed files with 56 additions and 18 deletions

View file

@ -10,7 +10,7 @@ import path from "path";
import { TokenError } from "passport-oauth2";
import { PluginError } from "knub";
require("dotenv").config({ path: path.resolve(__dirname, "..", "..", "api.env") });
require("dotenv").config({ path: path.resolve(process.cwd(), "api.env") });
function errorHandler(err) {
console.error(err.stack || err); // tslint:disable-line:no-console

View file

@ -12,7 +12,7 @@ import DiscordHTTPError from "eris/lib/errors/DiscordHTTPError"; // tslint:disab
import { Configs } from "./data/Configs";
require("dotenv").config({ path: path.resolve(__dirname, "..", "bot.env") });
require("dotenv").config({ path: path.resolve(process.cwd(), "bot.env") });
// Error handling
let recentPluginErrors = 0;