From c7417cf7a563c0e552949b5b759fdc493971be7f Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 28 Nov 2021 14:24:53 +0000 Subject: [PATCH] Migrate entry point --- src/vylbot.ts | 9 +++++++++ vylbot.js | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 src/vylbot.ts delete mode 100644 vylbot.js diff --git a/src/vylbot.ts b/src/vylbot.ts new file mode 100644 index 0000000..73bd1df --- /dev/null +++ b/src/vylbot.ts @@ -0,0 +1,9 @@ +import { CoreClient } from "vylbot-core"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +if (!process.env.EMBED_COLOUR) throw "EMBED_COLOUR is required in .env"; + +const client = new CoreClient(); +client.start(); \ No newline at end of file diff --git a/vylbot.js b/vylbot.js deleted file mode 100644 index d8625ff..0000000 --- a/vylbot.js +++ /dev/null @@ -1,5 +0,0 @@ -const vylbot = require('vylbot-core'); -const config = require('./config.json'); - -const client = new vylbot.client(config); -client.start(); \ No newline at end of file