Corresponding Web App Deployed on Heroku: https://lazymessengerbot.herokuapp.com
An Automated Messenger Bot with following cool features:
- Control YouTube just by texting Bot (integrated with Facebook Messenger ) using key terms like play,pause,forward,resume,mute, unmute and many more.
- Get news updates from Times of India just by texting the bot key terms like show headlines,show Tech and many more terms by topic.
- Control your Terminal through Messenger.
- selenium -
pip install selenium - Beautiful Soup -
pip install beautifulsoup4 - requests -
pip install requests - subprocess -
pip install subprocess
Run the script once python2 activateBot.py -e <BotId> -p <BotKey> and..Bingo!!.. done..Now Bot will do the work for you
Just Shot up Facebook Messenger(or any FB client ) on any of your devices and start chatting with the bot to control YouTube by just texting bot with the following terms
play <search term>: Returns top 5 videos from YouTube, waits for an integer response to play videoplay-now <search term>: Plays first video from search results (I'm feeling lucky)forward <time in seconds>: Seeks to the said timepause: Pauses the videoresume: Resumes a paused the videomute: Mutes the videounmute: Unmutes the video
Run the script python2 activateNews.py -e <BotId> -p <BotKey> and Bot will show you the desired news feeds
Get news updates from Times of India just by texting the Bot with key terms as follows
show headlines<topic> updates
Allows user to take full control of the terminal of their computer through Facebook's messaging service.
run:python teminal.py
Wait till it sets up to start operation.
Commands Supported
ls help cd mkdir rm gedit <file-name> ps
For automation we are using Selenium- An Automation Python API to access all functionalities of the system WebDriver in an intuitive way.For news functionality we are using Beautiful soup library to scrap Times of India news headlines feeds.To automate the above tasks we are using Selenium Chrome Drivers to interact our system with the FB messenger by parsing each command to make two way communication between the Bot and FB Messenger.