Python-World / Python_and_the_Web

Build Bots, Scrape a website or use an API to solve a problem.
MIT License
687 stars 261 forks source link

Added a telegram bot which runs python code #624

Closed aahnik closed 4 years ago

aahnik commented 4 years ago

A simple telegram bot that runs python code

RunPythonBot

Description

Fixes #623

GitHub license made-with-python

Take a look at this GIF to understand better:

You may use pythonic expressions to easily calculate any complex problem. Or you may test your algorithms on the go.

Click the gif to view full screen on Smartphone

runPython_bot

You can easily deploy this bot on Python Anywhere or on your local machine by following the steps given in README.

Type of change

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

Changes to be committed:
    new file:   runPython_bot/.gitignore
    new file:   runPython_bot/Makefile
    new file:   runPython_bot/README.md
    new file:   runPython_bot/bot/__init__.py
    new file:   runPython_bot/bot/execute_code.py
    new file:   runPython_bot/bot/runPython_bot.py
    new file:   runPython_bot/requirements.txt
    new file:   runPython_bot/start.py
aahnik commented 4 years ago

@AdityaJ7 @fuzzmz @valterm @dingusagar @k1m0ch1 @arthuralmeida93 @MNISAR @antoniouaa @sandyjswl @malhotra-paritosh @chavarera @SuvamPrasd @Araon @symtalha14

The bot is live and running.

Check it out now ☺️

http://t.me/runPython_bot

If the link does not work search @runPython_bot in Telegram.

AdityaJ7 commented 4 years ago

@aahnik very nice, just add some comments in your py files to make it a bit beginner-friendly everything else is awesome

aahnik commented 4 years ago

I have added docstrings with explanations and links to tutorials in my last commit https://github.com/Python-World/Python_and_the_Web/pull/624/commits/5668ad1524cf246455b11dea4cfaf193d864eafe

aahnik commented 4 years ago

My work is complete, you may try running the following on the already deployed bot

image

Check out @runPython_bot

Run Python code from telegram chat

tusharnankani commented 4 years ago

@allcontributors please add @aahnik for code

allcontributors[bot] commented 4 years ago

@tusharnankani

I've put up a pull request to add @aahnik! :tada:

aahnik commented 4 years ago

Thanks a lot @AdityaJ7 and @tusharnankani for accepting my pull request.

This was really a fun and enjoyable learning experience.

I hope to contribute more code in future.

tusharnankani commented 4 years ago

@aahnik Expecting more contributions from your end! 👍🏻 Keep it up! ^_^

github-actions[bot] commented 2 years ago

Python World does not accept pull requests on this repository anymore.