nehalvpatel / FB-Altcoin-Stock-Chatbot

A slightly lengthy bot to get Stocks and Altcoin prices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FB Altcoin Stock Chatbot

Random FB Altcoin/Stock/Trigger chatbot. Probably does what it's supposed to do.

CURRENTLY COMPATIBLE WITH ONLY FBCHAT < 1.0. This will be fixed shortly with a new update.

Compatible with the latest FBChat

Todo

  • Move main app.py from urllib3 to requests Done
  • Add Currency Conversion
  • Add Heroku instructions
  • Fix Math function
  • Make admin access configurable for adding commands

Getting Started

Prerequisites

  • Some version of Python3
  • fbchat, requests, urllib3 pip install -r requirements.txt
  • Facebook login of some sort, whether this is your actual account or one just for this purpose

Usage

  1. git clone this repo
  2. Rename settings/settings_template.py to settings/settings.py and fill in blank information
  3. pip install -r requirements.txt to get requirements
  4. 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.

Using the bot

Admin ID Setup

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

Functionality

  • Get stocks (via Alphavantage)
  • Get Bitcoin/Altcoins (via CoinMarketCap)
  • Get time from a timezone
  • Check 2captcha credits
  • Respond to triggers set by users

Commands

  • !commands - Return the command list
  • !addcmd <command> <response> - to add a basic text/emoji response
  • !delcmd <command> - to delete a command

Screenshot

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Changelog

16 March 2020 - Version 2.0

  • Update shitcoins.py to use new Coinmarketcap API
  • Remove use of urllib3 for app.py

Acknowledgments

About

A slightly lengthy bot to get Stocks and Altcoin prices

License:MIT License


Languages

Language:Python 100.0%