Dependencies:
- Python 3 and the different modules (install via pip:
pip install python-telegram-bot
) - OPSkinskey (How to get one: You need an account at opskins.com - there you can generate your key at Account->Advanced Options)
- Your telegram bot with token (How to get one: https://core.telegram.org/bots#6-botfather )
- Coinmarketcap API-Key (How to get one: https://coinmarketcap.com/api/)
- Coinmarketcap Sandbox-API-Key (How to get one: https://sandbox.coinmarketcap.com/)
Installation:
- copy the script into the desired location
- Rename or copy sample-credentials.py to credentials.py and add your OPSkinskey, coinmarketcap-api/coinmarketcap-sandbox-api and your Telegram-Bot-Token
- make sure, your dependencies are installed
- activate or deactivate the coinmarketcap-sandbox in credentials.py
Start the script (depending on your python installation):
python opskins-searchbot.py
orpython3 opskins-searchbot.py
Usage:
- send /games to get a list of supported games and choose one
- search for an item (just type the name of the item)
- use the buttons to get the current market price
Comment: Still in Alpha-state and a very messy code - but I'm going to work on that the next days. But the WAX-Bounty-Program (for what this project was coded) ends in a short time, so I was in a little hurry ;).
Latest updates:
- Coinmarketcap API v2 (API-key needed, since v1 is deprecated and will shut down soon)
- changed the authorization method
- integrated an individual file for authorization
- gamelist is now generated in a better way
- pictures!