1.0.1 • Published 3 years ago

discord-short-api v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

DiscordApi

(async () => {
    const { DiscordApi } = require('discord-api');

    const d = new DiscordApi('AwesomeEmail@any-mail.com', 'AwesomeP@ssowrd');
    await d.auth();

    const msgs = 'Every word as one message >:) yeah, we\'ve to shaffle >:)'.split(' ').shaffle();

    const t = setInterval(() => {
        const msg = msgs.pop();
        if (!msg) return clearInterval(t);
        d.sendMessageToChannel(channelId, msg);
    }, 5000);
})();

Exmaples

If you want to try something with this lib, check exmaples

If you pulled github repo, create .env file, add your meta, and try any example


Docs?

This lib is simply as can. Just read the code

TODO

  • add more methods for discord (maybe voice?)
  • find way for fix auth error (help me 😭)