Migrate entry point

This commit is contained in:
Ethan Lane 2021-11-28 14:24:53 +00:00
parent 6fb2da2b18
commit c7417cf7a5
Signed by: Vylpes
GPG key ID: EED233CC06D12504
2 changed files with 9 additions and 5 deletions

9
src/vylbot.ts Normal file
View file

@ -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();

View file

@ -1,5 +0,0 @@
const vylbot = require('vylbot-core');
const config = require('./config.json');
const client = new vylbot.client(config);
client.start();