Skip to content

paOol/onebjjbot

 
 

Repository files navigation

A Telegram Bot written in Node.js

Bringing Upvotes to Telegram

header

Social Features!

Commands

Social

upvote

upvote, lol(regex), lmao(regex), haha replying to a message with these will trigger the upvote buttons.

leaderboard

/leaderboard Prints the users with the highest points in Descending order

/register Saves the user's name and group id in order to use social features.

Media

img

img <query> returns a google image search based on query.

gif

giphy <query> returns a .mp4 file based on query (faster but less reliable results).

gif <query> returns a google gif search based on query.

youtube <query> returns a youtube link based on query.

Bitcoin

/balance <address> returns the balance of a bitcoin address in satoshis and BTC.

coinbase

/coinbase returns live exchange rate for USD/BTC via Coinbase

/btc generates a live screenshot of bitcoinity.org/markets

/convert (currency) to (BTC) or /convert (BTC) to (currency) gives you the live conversion values ie; $100 = 0.1 btc

Etc

translate

reply to message with 'translate <foreign language>' translates the original message from to English.

/stocks <ticker> returns live stock data based on ticker

/ss <url> generates a live screenshot of the provided url.

Required

Make a copy of the config.example file found here

This bot uses PostgresQL by default, but can be tweaked to work with MySQL.

To make use of the google APIs, you will need API keys from http://cse.google.com/create/new

A telegram token can be obtained by talking to the botfather

BitcoinAverage API key can be obtained here

Using the telegraf library.

Installation

    git clone this repo
    npm install
    npm run dev
    or
    npm run prod

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%