UNPKG

myteams-api

Version:

An MyTeams Module to use discord.js and Twitch API easily

23 lines 862 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HelperClient = void 0; const Error_1 = require("../Utils/Error"); const chalk_1 = __importDefault(require("chalk")); class HelperClient { constructor(client, token) { if (!client) throw new Error_1.MyTeamsError("Please provide a client."); if (!token) throw new Error_1.MyTeamsError("Please provide a token"); client.on("ready", () => this.Ready()); client.login(token); } Ready() { console.log(chalk_1.default.green("MyTeams Helper Intialized successfully")); } } exports.HelperClient = HelperClient; //# sourceMappingURL=client.js.map