Have ideas to improve npm?Join in the discussion! ¬Ľ

    @kamidere/duat
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1¬†‚Äʬ†Public¬†‚Äʬ†Published

    Discord Users Activity Tracker [DUAT]

    Bot extension.

    Sample code in sample.ts

    const djs = require('discord.js');
    const duat = require('@kamidere/duat');
     
    const client = new djs.Client();
    let subscription;
     
    client.on('ready', () => {
      subscription = duat.default(client).subscribe((user) => {
        console.log(user) // {userID, timestamp, guildId}
      })
    })
     
    client.on('disconnect', () => {
      subscription.unsubscribe();
    })
     
    client.login(process.env.DSC_TOKEN);

    Features

    Track creating/editing/deleting messeges
    Track voice joining/leaving

    ToDo

    Track reactions Fix exporting

    Thanks to

    @soanvig for CR and explaining in RxJS

    Install

    npm i @kamidere/duat

    DownloadsWeekly Downloads

    3

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    8.64 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar