Archived
0
0
Fork 0

fix: unable to start because of module alias not registering

This commit is contained in:
Daryl Ronningen 2021-06-21 16:18:56 -07:00
parent 5ce7664440
commit 4f6b656b30
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -14,6 +14,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with ArgonBot. If not, see <https: //www.gnu.org/licenses/>. * along with ArgonBot. If not, see <https: //www.gnu.org/licenses/>.
*/ */
require('module-alias/register');
import type Command from '@structures/command'; import type Command from '@structures/command';
import { Defaults } from '@utils/defaults'; import { Defaults } from '@utils/defaults';
import { debug, error, fatal, info, verbose } from '@utils/logger'; import { debug, error, fatal, info, verbose } from '@utils/logger';
@ -29,8 +31,6 @@ import { DateTime } from 'luxon';
import path from 'path'; import path from 'path';
import process from 'process'; import process from 'process';
require('module-alias/register');
let isBotReady = false; let isBotReady = false;
const commands: Collection<string, Command> = new Collection(); const commands: Collection<string, Command> = new Collection();