diff --git a/src/sentry-hack.ts b/src/sentry-hack.ts deleted file mode 100644 index 2e46cde..0000000 --- a/src/sentry-hack.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -// noinspection JSUnusedGlobalSymbols,ES6ConvertVarToLetConst - -// This allows TypeScript to detect our global value -global.__rootdir__ = process.cwd() - -declare global { - var __rootdir__: string -} - -export {} diff --git a/src/sentry.ts b/src/sentry.ts index 1f263d5..4e0bc61 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -1,7 +1,7 @@ import * as Sentry from '@sentry/node' import {Client} from 'discord.js' import {logger} from './logging.js' -import './sentry-hack.js' + export function initSentry(client: Client) { process.on('unhandledRejection', (error) => {