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

Enhance runPython_bot  #629

@aahnik

Description

@aahnik

Description

I propose the following enhancements to the bot:
( note: I am the author of this bot )

  • Logs should contain time-stamps in the deployer's desired time-zone instead of server time.
  • Uplift ban from exponentiation ** as the cause of bug found and can be handled.
  • Hanging in case of certain long calculations can be prevented.
  • Reduce bot's response time by preventing the repetition of execution.

    earlier when there was no output after executing the code via python -c code, the bot would run eval(code).

  • add new command /e to run pythonic expressions.
  • add new commands /help and /code
  • remove the dependency on Makefile as it had only a few lines
  • add more detailed docstrings
  • make the readme instructions simpler to follow.
  • host the code for this in an independent repo, to make deploying and updating code on server steps easier.

Here is a gif of the new behavior of the bot:

image

Type of issue

  • Enhance existing script

Checklist:

  • I have read the project guidelines.
  • I have checked all the existing projects, before submitting a new project issue.
  • I have checked previous issues to avoid duplicates.
  • This issue will be meaningful for the project.

The latest version of this bot is up and running on Telegram. Check @runPython_bot and @runPython_twin_bot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions