A simple python bot which tweets your recent matches played. Data collected using OpenDota Web API, requests library and tweeted using Tweepy API.
Python should be installed on your machine. You need to install following libraries:
Now you can download the repository or clone it using the following command
>>> git clone https://github.com/MaanDodiya/dota2-twitter-bot.git
In "twitter.py" file:
auth = tweepy.OAuthHandler("consumer_key", "consumer_secret")
auth.set_access_token("key", "secret")
- Replace the "consumer_key" with API key and "consumer_secret" with API Secret key
- Replace the "key" with Access Token key and "secret" with Access Token Secret key
Refer this Tweepy Documentation if not working
Run the python file in your terminal.
Enter your MMR in the terminal (Optional, It is not tweeted but kept in log.dat file for future reference)
>>> C:/Python39/python.exe twitter.py
Enter the MMR: 2490
- Name: Maan "2di.[L]ogan" Dodiya
- MMR: 2.5k
- Roles: Offlane, Support
- Region: SEA
- Heroes: Centaur Warrunner, Earth Spirit, Earthshaker, Dragon Knight, Jakiro