Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
/ MetalBot Public archive

Bot to send metal prices daily to myself

License

Notifications You must be signed in to change notification settings

tryonlinux/MetalBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetalBot

Extremely Simple Telegram Bot to send metal prices daily to myself using NodeJS and Telegram/Metal-API web services.

Requirements

Getting Started

To run simply clone and download code.

Then run the below line to install required packages.

npm i

Place the keys you get and your channel id in a keys.json file like so:

{
"botID": "bot*Bot API Key Here*",
"chatID": "-100*Channel ID Here*,
"metalAPIKey": "*metal API Key Here*"
}

Usage

node index.js

FAQ

How do I get my channel ID for Telegram?

Check out this answer on stackoverflow

How do I set this up to send me prices automatically every morning?

I personally just use a cron job on my personal digital ocean droplet and schedule it to run everyday at 7am.

0 7 * * * node /path/to/file/index.js

Authors

Jordan Tryon

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Bot to send metal prices daily to myself

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published