Logo Lanfrica

Yonas-Wondimagegn/bible-verse-bot

Domaine:

natural language processing

Type de record:

software
Créateur:
Yon
Hôte:
Telegram bot delivering daily bible verses in Amharic & English # AMHARIC BIBLE VERSE TELEGRAM BOT delivers daily Bible verses in **Amharic** and **English** at scheduled times at 12:00AM & 12:00PM...users can also request instant verses with `/verse` ## Features Scheduled Verses Smart rotation - 25 curated bible passages from both Old & New Testament - tried to include anti repeat algo to ensures no duplicate verses within 10 requests that came from 1 user - to ensure same naming as amharic reference names i have had included those to the project (e.g ምሳሌ for Proverbs, ዮሐንስ for John) ## Setup ### 1. Clone the repository ```bash git clone github.com cd bible-verse-bot ``` ### 2. Create a virtual environment ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` ### 3. Install dependencies ```bash pip install -r requirements.txt ``` ### 4. Configure your bot token ```bash cp .env.example .env ``` Then edit `.env` and add your Telegram bot token: ``` BOT_TOKEN=your-a...oken ``` **to get a token:** Message @BotFather on telegram and create a new bot then copy the token ### 5. Run the bot ```bash python bible_verse_bot.py ``` ## Project Structure ``` bible-verse-bot/ ├── bible_verse_bot.py # Main bot code ├── requirements.txt # python dependencies ├── .env.example # environment variable template ├── .gitignore # Git ignore rules └── README.md # this file ``` ## Configuration | Setting | Default | Description | |---------|---------|-------------| | `BOT_TOKEN` | — | Your Telegram bot token (**required**) | | `USERS_FILE` | `subscribed_users.json` | File to store subscribed user IDs | ## Tech Stack - **Python 3.11+** - **python-telegram-bot** (v21+) — telegram Bot API framework - **aiohttp** — Async HTTP client for bible API - **python-dotenv** — environment variable management ## API English verses are fetched live from labs.bible.org API Amharic verses use already pre loaded local data …

Languages