mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 14:15:25 +00:00
Merge pull request #45 from ishanjain28/develop
Added Dockerfile, Updated readme
This commit is contained in:
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM node:alpine
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD npm start
|
||||
|
@@ -17,6 +17,15 @@ You need [Node.js](https://nodejs.org/) (> 8.1) to run this bot.
|
||||
4. Copy `example.config.js` to `config.js` and edit it.
|
||||
5. Start the bot via `npm start`.
|
||||
|
||||
## Setup with Docker
|
||||
You need to have [docker](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-from-a-package) installed on your machine.
|
||||
|
||||
1. Create a bot via [@BotFather](https://t.me/BotFather) and grab a **token**.
|
||||
2. Clone this repository or [download zip](https://github.com/TheDevs-Network/the-guard-bot/archive/master.zip).
|
||||
3. Copy `example.config.js` to `config.js` and edit it.
|
||||
4. Run `docker build -t guards_bot .` to build image.
|
||||
5. Run `docker run --rm -itd guards_bot` to start the bot.
|
||||
|
||||
Now you can add the bot as **administrator** to your groups.
|
||||
|
||||
## Features
|
||||
|
Reference in New Issue
Block a user