ArtCC / cryptoinfobot-artcc

Telegram bot to receive the current price of my cryptocurrencies and the total euros in my portfolio in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

With this Telegram bot you can add and remove your cryptocurrencies to your wallet to give you their total and individual price. It is developed in NodeJS and deployed on Heroku.

You can add the bot to Telegram from this link

This bot is anonymous, it does not capture data if it is added to a group and the only data that is stored in the database is your telegram user id in order to associate your cryptocurrencies that you add.

Commands in Spanish language to use the bot:

alerta - Activa o borra una alerta de precios para una criptomoneda. Ej: /alerta ethereum 3500

alertabaja - Activa o borra una alerta de bajada de precios para una criptomoneda. Ej: /alerta cardano 1.50

alertas - Te muestro todas tus alertas de precios

baja - Elimino todos los datos que tengo sobre ti definitivamente

borrar - Puedes borrar una criptomoneda de tu cartera

cartera - Te digo el valor total de tu cartera de criptomonedas

cripto - Añade una criptomoneda a tu cartera. Ej: /cripto cardano ADA 10

donar - Puedes apoyar económicamente el proyecto. ¡Gracias!

hola - Te saludo amablemente por tu nombre y te doy información sobre mí

notificaciones - Puedes activar o desactivar notificaciones automáticas del valor de tu cartera

precio - Dime una criptomoneda para darte su precio actual y gráfica por días. Ej: /precio cardano 1

start - Te doy información sobre mí e inicio mi actividad contigo

Database in Heroku Postgres:

CREATE TABLE ALERTS(
   ID SERIAL PRIMARY KEY NOT NULL,
   USER_ID INT NOT NULL,
   NAME TEXT NOT NULL,
   CHAT_ID INT NOT NULL,
   CRYPTO TEXT NOT NULL,
   PRICE DOUBLE PRECISION NOT NULL
);
CREATE TABLE CRYPTOCURRENCIES(
   ID SERIAL PRIMARY KEY NOT NULL,
   USER_ID INT NOT NULL,
   NAME TEXT NOT NULL,
   ALIAS TEXT NOT NULL,
   AMOUNT DOUBLE PRECISION NOT NULL
);
CREATE TABLE LOWALERTS(
   ID SERIAL PRIMARY KEY NOT NULL,
   USER_ID INT NOT NULL,
   NAME TEXT NOT NULL,
   CHAT_ID INT NOT NULL,
   CRYPTO TEXT NOT NULL,
   PRICE DOUBLE PRECISION NOT NULL
);
CREATE TABLE SCHEDULER(
   ID SERIAL PRIMARY KEY NOT NULL,
   USER_ID INT NOT NULL,
   NAME TEXT NOT NULL,
   CHAT_ID INT NOT NULL
);
CREATE TABLE UPDATE(
   CHAT_ID INT PRIMARY KEY NOT NULL
);

LICENSE

This project is free and use MIT license.

THANK YOU!

I hope you like it!

ArtCC 2021++

About

Telegram bot to receive the current price of my cryptocurrencies and the total euros in my portfolio in Node.js

License:MIT License


Languages

Language:JavaScript 100.0%Language:Procfile 0.0%