Feature/23 migrate to typescript #73

Merged
Vylpes merged 19 commits from feature/23-migrate-to-typescript into develop 2021-12-04 15:51:41 +00:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit c7417cf7a5 - Show all commits

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