v3.0 #145
2 changed files with 9 additions and 5 deletions
9
src/vylbot.ts
Normal file
9
src/vylbot.ts
Normal 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();
|
|
@ -1,5 +0,0 @@
|
||||||
const vylbot = require('vylbot-core');
|
|
||||||
const config = require('./config.json');
|
|
||||||
|
|
||||||
const client = new vylbot.client(config);
|
|
||||||
client.start();
|
|
Loading…
Reference in a new issue