npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

telegram-reminder-bot

v0.0.2

Published

Simple reminder nodejs bot for telegram

Downloads

12

Readme

Simple reminder bot for Telegram

This is a simple reminder bot for Telegram written in JavaScript for Node.js. Just use /rem command:

  • /rem 1d, 2h 30m Set reminder in one day 2 hours and 30 minutes
  • /rem 1y ,3mo Set reminder in one year and 3 months
  • /rem 15s In feefteen seconds...

I have plans to add /list command to show all reminders, add ability to send reminder to specific @person, and set reminder by date.

Also can be useful to set reminders in groups: /rem@your_bot_name 15m We've done!

REQUIREMENTS

Node.js runtime

INSTALLATION

Run in arch linux shell

$ sudo pacman -S nodejs
$ npm install telegram-reminder-bot

USAGE

Create js script

$ nano test.js

with the following content

var Bot = require('telegram-reminder-bot');

var token = '144..your_token_goes_here';
var IP = '1.2.3.4'; // your real IP
var port = 8443; // HTTPS port
var key = __dirname + '/crt.key';  // self-signed certificate
var cert = __dirname + '/crt.pem';

var bot = new Bot(token, IP, port, key, cert);
bot.run();

Generate self-signed certificate

$ openssl req -newkey rsa:2048 -sha256 -nodes -keyout crt.key -x509 -days 365 -out crt.pem -subj "/C=IT/ST=state/L=location/O=description/CN=1.2.3.4"

replace 1.2.3.4 with your real IP

And run

$ node test.js

or with debug output

$ DEBUG=bot,reminder node test.js

Should see something like this

bot **** has been deployed +273ms

License

This is open-sourced software licensed under the MIT license.