2025-01-07 09:25:51 -05:00
|
|
|
# request-bot
|
|
|
|
A Telegram bot which takes requests for modules.lol
|
2025-01-07 12:02:18 -05:00
|
|
|
|
|
|
|
# Setting up and self hosting
|
2025-01-07 12:21:54 -05:00
|
|
|
## With Docker
|
2025-01-07 17:52:35 -05:00
|
|
|
1. **Install dependancies**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun install
|
|
|
|
```
|
|
|
|
**OR**
|
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
|
|
|
2. **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
|
|
|
|
|
|
|
|
3. **Build Image and Start**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker compose up -d --build
|
|
|
|
```
|
|
|
|
|
|
|
|
Please note: `sudo` may be required.
|
|
|
|
|
|
|
|
You may customize the container with the included `docker-compose.yml` file.
|
2025-01-07 12:21:54 -05:00
|
|
|
## The "Normal" way
|
2025-01-07 12:02:18 -05:00
|
|
|
1. **Install dependancies**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun install
|
|
|
|
```
|
|
|
|
**OR**
|
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
|
|
|
2. **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
|
|
|
|
|
|
|
|
3. **Start the bot**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun index.js
|
|
|
|
```
|
|
|
|
**OR**
|
|
|
|
```bash
|
|
|
|
node index.js
|
2025-01-07 12:21:54 -05:00
|
|
|
```
|
2025-01-07 17:52:35 -05:00
|
|
|
|