Skip to content

xlanor/CryptoKitties

Repository files navigation

Meow

License: MIT Travis CI

A telegram bot to scan CryptoKitties API to report on kittens with a certain desirable trait.

Will clean up more when Im free and add more options to customize the parameters.

Please take note that this was a customized bot for my colleagues, I didn't expect to receive so much traffic on it.

Feel free to take it, modify the code, run it as your own instance, improve it, bla bla.

Thanks to Python-Telegram-Bot.

Requirements

  • Python3
  • ImageMagick
  • Python Telegram Bot
  • wand
  • PyMySQL
  • web3py (You can do manual calculation for all wei->usd instead and not use this)

Sample Output

General Setup guide

  • Install setup.py

  • Setup a mysql db (reccomend you use Cryptokitties as the title)

  • put your creds in tokens file.

  • Put your bot api in the tokens file as well.

  • Create a telegram channel to use for error messages and place the ID of the channel in tokens file according

  • Run createdb.py

  • rename tokens-sample.py to tokens.py

  • Replace filepaths in both modules.

  • go to your bot and do a /register, register yourself. (Reccomend not using a gigantic offset value)

  • Run the bot.

  • .service file is included for users on systems that use systemd, modify it accordingly.

Licensing

Licensed under the MIT license. Do whatever you want to do with it.