Sign inSign up

hunterreadca/lfg-notify-bot

By hunterreadca

•Updated about 1 hour ago

Image for https://github.com/hunter-read/lfg-notify-bot

Image
0

8.6K

hunterreadca/lfg-notify-bot repository overview

LFG Notification Bot

⁠Info

Docker Image for github: LFG_Notify_Bot⁠.

Reddit Bot: u/LFG_Notify_Bot⁠

Web Tool: LFG Notify Bot Assistant⁠

Maintainer: Hunter Read⁠

⁠Tags

stable: Main version.

latest: Development version. This is built off the main branch in github automatically.

⁠How to run

  • Set env variables
REDIS_HOST=redis
DATABASE=/data/lfg.db
LOG_LEVEL=INFO
XDG_CONFIG_HOME=/data
  • Mount volume with praw.ini and lfg.db to /data
  • Network to redis
  • Each main python program (submission, notification, scheduled, message) should run in its own container
⁠Example compose file
version: "3"

x-lfg-bot:
  &lfg-bot
  image: hunterreadca/lfg-notify-bot:stable
  depends_on: 
    - redis
  volumes: 
    - lfg.db:/data/lfg.db
    - praw.ini:/data/praw.ini
  restart: always
  environment:
    - REDIS_HOST=redis
    - DATABASE=/data/lfg.db
    - LOG_LEVEL=INFO
    - XDG_CONFIG_HOME=/data

services:
  redis:
    container_name: lfg-redis
    image: redis:latest
    restart: always

  submission: 
    << : *lfg-bot
    command: python3 submission_bot.py
    container_name: lfg-submission-bot

  notify:
    << : *lfg-bot
    command: python3 notification_bot.py
    container_name: lfg-notification-bot

  message:
    << : *lfg-bot
    command: python3 message_bot.py
    container_name: lfg-message-bot

  scheduled:
    << : *lfg-bot
    command: python3 scheduled_bot.py
    container_name: lfg-scheduled-bot

Tag summary

Content type

Image

Digest

sha256:0385b2329…

Size

46.7 MB

Last updated

about 1 hour ago

docker pull hunterreadca/lfg-notify-bot