A simple and intuitive telegram bot made for interaction and data fetching from Raspberry pi.Currently this ChatBot is hotsted on my PC for prompt and lag free responses.You can access the demo @https://telegram.me/nsniteshsahni_bot
To interact with bot,you can reference the following examples
/hi
To greet your device
/wiki Delhi
It will perform a wikipedia search and returns the relevant data without any clutter
/torrent <magnet link/torrent URL/info hash>
Adds and downloads torrent remotely to your device.Uses deluge torrent client as backend. Visit above bot URL for more interesting features and commands.
This bot requires following Python librarires:
- Wikipedia
- OpenWeatherMap
- Python wrapper class for telegram
- Deluge torrent client
- Speedtest cli
- youtube_dl
- Beautiful Soup
sudo pip install wikipedia
sudo pip install pyowm
sudo pip install telepot
sudo pip install pyshorteners
sudo pip install speedtest-cli
sudo pip install bs4
sudo pip install requests
sudo pip install youtube-dl
sudo apt-get install deluge
Install deluge torrent client for remote torrent downloading feature. Now just simply run bot.py and attach it to startup process for uninterrupted operation
#List of features
- Weather status
- Torrent downloading
- Torrent status tracking
- Wikipedia search
- Network speedtest
- Download youtube videos
- Google news headlines
And other auxiliary features
- Wikipedia for data fetching
- OpenWeatherMaps for weather details
- GPIO Library for python
- Telegram API for bot
- Google API for URL Shortening
- Beautiful soup for web parsing
- Deluge Console API for remote torrent downloading
- Youtube python library
The MIT License (MIT)
Copyright (c) 2016 Nitesh Sahni
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.