UNPKG

marsy.js

Version:

Marsy.Live için tasarlanmış bir API yönetim uygulamasıdır. Bu modül ise kolay bir şekilde kullanımını sağlamaktadır.

33 lines (25 loc) 692 B
const Base = require('./Base'); const Users = require('../structures/BaseUsers'); const Guilds = require('../structures/BaseGuilds'); class Client extends Base { constructor({ license, timeout = 10000 }) { super(Client, { license }); this.timeout = timeout; this.users = new Users(this); this.guilds = new Guilds(this); this.license = license } login() { setInterval(async () => { this.emit("status", this.data); }, this.timeout); const data = this.onReady(); return data } } module.exports = Client;