discord-short-api

1.0.1 • Public • Published

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 😭)

Readme

Keywords

none

Package Sidebar

Install

npm i discord-short-api

Weekly Downloads

5

Version

1.0.1

License

ISC

Unpacked Size

3.99 kB

Total Files

4

Last publish

Collaborators

  • ilya777grin23