1.0.2 • Published 3 years ago

discord-timestamp v1.0.2

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

discord-timestamp

Installation

  • npm i discord-timestamp

Code

  • const { Client } = require('discord.js');
    const client = new Client();
    const timestamp = require('discord-timestamp');
    const ms = require('ms');
    
    client.on('ready', () => console.log('ready'));
    client.on('message', m => {
      if (m.content == '!djs') {
        var time = ms('10m');
        return m.channel.send(`<t:${timestamp(time + Date.now())}:F>`);
      }
    });
    
    client.login('token');

Support

Made by melih#1337 - kaan#1337