hyrdbyrd / DiscordApi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 97.2%Language:Shell 2.8%