Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Added a telegram bot which runs python code #624

Merged
merged 6 commits into from
Oct 31, 2020
Merged

Added a telegram bot which runs python code #624

merged 6 commits into from
Oct 31, 2020

Conversation

aahnik
Copy link
Member

@aahnik aahnik commented Oct 30, 2020

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

  • New feature (non-breaking change which adds functionality)

Checklist:

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

  • I have named my files and folder, according to this project's guidelines.
  • My code follows the style guidelines of this project.
  • My Pull Request has a descriptive title. (not a vague title like Update index.md)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • I have included a requirements.txt file (if external libraries are required.)
  • My changes do not produce any warnings.
  • I have added a working sample/screenshot of the script.
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

On branch aahnik_runPythonBot
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/__pycache__/__init__.cpython-38.pyc
	new file:   runPython_bot/bot/__pycache__/execute_code.cpython-38.pyc
	new file:   runPython_bot/bot/__pycache__/py_runner.cpython-38.pyc
	new file:   runPython_bot/bot/__pycache__/runPython_bot.cpython-38.pyc
	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
Changes to be committed:
	modified:   .gitignore
	deleted:    bot/__pycache__/__init__.cpython-38.pyc
	deleted:    bot/__pycache__/execute_code.cpython-38.pyc
	deleted:    bot/__pycache__/py_runner.cpython-38.pyc
	deleted:    bot/__pycache__/runPython_bot.cpython-38.pyc
@aahnik
Copy link
Member Author

aahnik commented Oct 30, 2020

@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
Copy link
Member

AdityaJ7 commented Oct 31, 2020

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

Changes to be committed:
	modified:   bot/__init__.py
	modified:   bot/execute_code.py
	modified:   bot/runPython_bot.py
@aahnik
Copy link
Member Author

aahnik commented Oct 31, 2020

I have added docstrings with explanations and links to tutorials in my last commit 5668ad1

Copy link
Member Author

@aahnik aahnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the entire code , and have found no problems.

The deployment is also successful and the bot is running smoothly.

Any suggestions for improving the performance of the bot is most welcome ! 😀

@aahnik
Copy link
Member Author

aahnik commented Oct 31, 2020

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

@mergify mergify bot merged commit 20d9d39 into Python-World:master Oct 31, 2020
@tusharnankani
Copy link
Member

@allcontributors please add @aahnik for code

@allcontributors
Copy link
Contributor

@tusharnankani

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

@aahnik
Copy link
Member Author

aahnik commented Oct 31, 2020

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
Copy link
Member

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

@github-actions
Copy link

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

@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2022
@mergify mergify bot added the nice-job label Jun 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run python expressions from telegram, Telegram Bot
3 participants