Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/script-0/hcia-rs-prep-bot
A HCIA R&S Certification question/answers Telegram bot
https://github.com/script-0/hcia-rs-prep-bot
hcia-rs hcia-training python-bot quiz-telegram-bot telegram-bot
Last synced: about 1 month ago
JSON representation
A HCIA R&S Certification question/answers Telegram bot
- Host: GitHub
- URL: https://github.com/script-0/hcia-rs-prep-bot
- Owner: script-0
- Created: 2021-10-06T18:55:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T03:58:51.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T04:09:02.005Z (3 months ago)
- Topics: hcia-rs, hcia-training, python-bot, quiz-telegram-bot, telegram-bot
- Language: Python
- Homepage: https://t.me/quizT_bot
- Size: 1.06 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hcia-rs-prep-bot
A Telegram bot for question/answers relatively to HCIA R&S Certification[](https://github.com/script-0/hcia-rs-prep-bot/actions/workflows/lint.yml) [](https://github.com/psf/black)
## How to deploy Locally
- Requirements
- Python 3.7 or earlier
- virtualenv
```bash
$ pip3 install virtualenv
```
- Initialised Bot with [@BotFather](https://t.me/BotFather)
- Code the repo
```bash
$ git clone [email protected]:script-0/hcia-rs-prep-bot
cd hcia-rs-prep
```- Configure virtual environment
```bash
$ virtualenv venv -p python3
source venv/bin/activate
```- Install librairies
```bash
$ pip3 install -r requirements.txt
```
- Define environment variables.
```bash
$ export BOT_SECRET="YOUR_BOT_SECRET"
$ export MONGO_DB="YOUR_MONGO_DB_URI" # format: "mongodb+srv://USERNAME:[email protected]/COLLECTION_NAME?retryWrites=true&w=majority"
$ export USER_CODE="USER_CODE_TO_CREATE_QUIZ"
```
- One more step. \
Localise the following bit of code and comment it.\
Tips: look at `main()` in `bot.py`
```python
updater.start_webhook(
listen="0.0.0.0", port=PORT, url_path=TOKEN, webhook_url=APP_NAME + TOKEN
)
```
- Oooffs, Run it
```bash
$ python3 bot.py
```
## To DO- [x] Implement interaction with user
- [x] User created quizz recording
- [x] Integrate document based database (MongoDB Atlas)
- [x] Think about question with image : ADD illustration to Quiz
- [x] Remove illustration from QUIZ
- [ ] Auto complete feature on typing command
- [ ] More beautiful report
- [ ] More useful How to deploy
- [ ] Code refactoring