Skip to content

pigeon-sable/vuln_info_bot

Repository files navigation

vuln_info_bot

Python release License

vuln_info_bot

Description

This bot is for muttering vulnerability information.

Requirement

python 3.11.0

Usage

1. Clone this repository

git clone git@github.com:pigeon-sable/vuln_info_bot.git

or

git clone https://github.com/pigeon-sable/vuln_info_bot.git

2. Change the working directory

cd vuln_info_bot

3. Rename .env_example to .env and enter your Discord Bot token

Do not enclose in single quotes("'").

cp .env_example .env
vim .env
    ACCESS_TOKEN=123456789abcdefg
    NOTIFY_TIME=20:00

4. Run the program

If you want to run it in a local environment, you can do so with the following command.

pip install -r requirements.txt
python src/vulnerability_collector.py

Alternatively, a container can be used to run it. To execute, the following command is used. The docker repository is at the following URL.

https://hub.docker.com/repository/docker/mozsecurity/vuln_info_bot/general

docker pull mozsecurity/vuln_info_bot:latest
docker run --rm --env-file .env mozsecurity/vuln_info_bot:latest

The above docker command can also be executed with docker compose, as shown below. First, create compose.yaml and write the following.

version: "3.8"
  services:
    app:
      image: mozsecurity/vuln_info_bot
      env_file:
        - .env
      environment:
        - TZ=Asia/Tokyo

Then simply execute the command as follows.

docker-compose up -d

Licence

Apache License, Version2.0

Author

Kobayashi123