Random FB Altcoin/Stock/Trigger chatbot. Probably does what it's supposed to do.
Compatible with the latest FBChat
- Add Currency Conversion
- Add Heroku instructions
- Fix Math function
- Make admin access configurable for adding commands
- Some version of Python3
- fbchat, requests, urllib3 - Install using
pip install -r requirements.txt
- Facebook login of some sort, whether this is your actual account or one just for this purpose
git clone
this repo- Rename
settings/settings_template.py
tosettings/settings.py
and fill in blank information pip install -r requirements.txt
to get requirements- Run with
python app.py
Note: I suggest not using your main Facebook account, but have a separate account set up for this purpose. If you are planning to run this on a service without a fixed IP (such as Heroku), Please log in first, copy the useragent of your browser and the relevant cookies for facebook.com to avoid getting checkpointed.
The ability to delete commands are only available for admins of the this chatbot. To set admins, find the user's facebook ID and add them as comma separated values in adminfbids
variable in settings/settings.py
- Get stocks (via Alphavantage)
- Get Bitcoin/Altcoins (via CoinMarketCap)
- Get time from a timezone
- Check 2captcha credits
- Respond to triggers set by users
!commands
- Return the command list!addcmd <command> <response>
- to add a basic text/emoji response!delcmd <command>
- to delete a command
- Tim Chan - https://twitter.com/TimLChan
This project is licensed under the MIT License - see the LICENSE file for details
- Update
shitcoins.py
to use new Coinmarketcap API - Remove use of
urllib3
for app.py
- Thanks to fbchat for the great Facebook Chat implementation
- Utilises the CryptoCompare API
- Thanks Weidi Zhang for providing the YQL url and arguments