Coder Social home page Coder Social logo

zerotip-telegram's Introduction

ZeroTip - Zero currency tipbot for Telegram

Forked from PandaTip-Telegram, by @DarthJahus

⚠ Warning

This bot is not functional for it needs account management to be supported by the client (wallet).

The feature has been deprecated and removed from latest BitcoinCore clients, and therefore from all clients who merged the change or forked after it has been made.

Dependencies

  • apt-get install python-dev
  • apt-get install python-pip
  • pip install python-telegram-bot --upgrade
  • pip install requests
  • pip install emoji

In order to run the tip-bot, a Zero-Core client is needed (zerod).

Configuration file

Create a config.json JSON file and set up the following parameters:

(sample)

{
	"telegram-token": "such:sicret-token",
	"telegram-botname": "ZeroTip",
	"rpc-uri": "http://127.0.0.1:23800",
	"rpc-user": "suchuser",
	"rpc-psw": "suchpassword",
	"admins": [-0, 0],
	"spam_filter": [5, 60],
	"rain": {
	    "rain_queue_min_text_length": 10,
	    "rain_queue_min_words": 2,
	    "rain_queue_max_members": 30,
	    "rain_min_members": 5,
	    "rain_min_amount": 10
	}
}
  • telegram-token: Your bot's unique and secret token.

    Create a new bot by talking with @BotFather to get one.

  • rpc-uri: Address and port for the daemon.

    We do not advice to expose the port to external network. Please, be cautious. See next section to allow access for network addresses.

  • rpc-user, rpc-psw: Username and password for the daemon.

    You can set them in the zero.conf file (see next section).

  • admins: An array of administrators' Telegram UserID (as integers).

    You can send /user_id to @ContremaitreBot to know your UserID.

  • spam_filter: An array of two integers. The first value is the number of actions a user can perform in a period of time, the 2nd value defines that period of time in seconds.

    "spam_filter": [5, 60] means that users cannot perform more than 5 actions per minute.

Zero daemon configuration

A zero.conf file is needed in data directory.

(sample)

server=1
daemon=1
enableaccounts=1
staking=0
rpcuser=muchuser
rpcpassword=suchsicret
pid=zerod.pid
rpcallowip=127.0.0.1
rpcconnect=127.0.0.1

ToDo

  • Add service commands like /pause (pauses the bot for everyone), and maybe some commands to check the health of the daemon / wallet.
  • Populate strings.json
  • Add spam protection
  • Per-user language
  • Show fiat equivalent for balance
  • Add /price and /marketcap commands

zerotip-telegram's People

Contributors

darthjahus avatar

Watchers

 avatar  avatar

zerotip-telegram's Issues

Component Level Tipbot Understanding

Hi Jahus. I'm looking to develop a custom tipbot for an ERC20 token on Ethereum. I'm first beginning to understand Telegram bots in general, but a still a long ways to go. However, the second step I am unsure of, which is the wallet management system approach in general for telegram users. Are you creating a wallet for each user and storing the credentials in a global telegram database or a personally deployed database? I’m quite stuck on this step. I couldn’t find a component level diagram of how telegram tiptbots are structured, so I am hoping you can give me some insight into this? I didn't know how else to contact you. Thanks in advance.

Zero currency's client has removed support for accounts

error code: -11
error message:
Accounts are unsupported

This bot is not functional for it needs account management to be supported by the client (wallet).

The feature has been deprecated and removed from latest BitcoinCore clients, and therefore from all clients who merged the change or forked after it has been made.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.