request-bot
A Telegram bot which takes requests for modules.lol
Setting up and self-hosting
Using Docker
-
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
git clone https://git.pontusmail.org/aidan/request-bot.git
Option Two: Download only needed files
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 usecurl
instead. -
Change variables
Copy
.env.example
to.env
and open the file in a text editor: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 -
Bring up the containers
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
-
Clone repository
git clone https://git.pontusmail.org/aidan/request-bot.git
-
Install dependencies
bun install
OR
npm install
-
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 -
Start the bot
bun index.js
OR
node index.js