https://github.com/ihatenodejs/request-bot
A Telegram bot which takes requests for modules.lol
https://github.com/ihatenodejs/request-bot
bot telegraf telegram telegram-bot
Last synced: 11 months ago
JSON representation
A Telegram bot which takes requests for modules.lol
- Host: GitHub
- URL: https://github.com/ihatenodejs/request-bot
- Owner: ihatenodejs
- License: unlicense
- Created: 2025-01-07T14:25:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-29T01:15:51.000Z (about 1 year ago)
- Last Synced: 2025-06-06T05:01:50.084Z (about 1 year ago)
- Topics: bot, telegraf, telegram, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# request-bot
[](https://github.com/ihatenodejs/request-bot/actions/workflows/docker.yml)
[](https://github.com/ihatenodejs/request-bot/actions/workflows/bump.yml)
A Telegram bot which takes requests for modules.lol
## Setting up and self-hosting
### Using Docker
1. **Fetch needed files**
Pick your preferred option to get the files needed for Docker. Either option is fine, although Git is arguably the best option.
**Option One:** Clone Git Repo
```bash
git clone https://git.pontusmail.org/aidan/request-bot.git
```
**Option Two:** Download only needed files
```bash
wget https://git.pontusmail.org/aidan/request-bot/raw/branch/main/docker-compose.yml
wget https://git.pontusmail.org/aidan/request-bot/src/branch/main/.env.example
```
You may have to install `wget`, or you could use `curl` instead.
2. **Change variables**
Copy `.env.example` to `.env` and open the file in a text editor:
```bash
cp .env.example .env # Copy .env file
nano .env # Open in nano (or vim, if you prefer)
```
Replace `ADMIN_ID` with your Telegram user ID. This will be used for admin-only commands.
Replace `BOT_TOKEN` with your Telegram bot token you created through @BotFather
3. **Bring up the containers**
```bash
docker compose up -d
```
Please note: `sudo` may be required.
You may customize the container with the included `docker-compose.yml` file if needed.
### Using Node
1. **Clone repository**
```bash
git clone https://git.pontusmail.org/aidan/request-bot.git
```
2. **Install dependencies**
```bash
bun install
```
**OR**
```bash
npm install
```
3. **Change variables**
Copy `.env.example` to `.env` and open the file in a text editor.
Replace `ADMIN_ID` with your Telegram user ID. This will be used for admin-only commands.
Replace `BOT_TOKEN` with your Telegram bot token you created through @BotFather
4. **Start the bot**
```bash
bun index.js
```
**OR**
```bash
node index.js
```