Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
/ saberbot Public archive

A simple Telegram bot that sends a random non-NSFW picture from r/Saber

License

Notifications You must be signed in to change notification settings

Sad-Cats-Club/saberbot

Repository files navigation

Saber Bot

Language grade: Python

A simple Telegram bot that sends a random non-NSFW picture from r/Saber. Inspired by but not based on doggobot.

This bot can be found at t.me/ch_saberbot.

Prerequisites

You need to have installed:

  • Python 3 and pip

You also need these secrets (organisation memebers may use these:

  • Reddit API client ID + client secret
  • Telegram bot API key

Usage

First, create a virtual environment and source it:

python3 -m venv venv
. venv/bin/activate

Install dependencies using pip:

pip3 install -r requirements.txt

Now, add secrets by first copying apikey.yml.dist to apikey.yml. Then, fill in the blanks using the secrets above.

Lastly, run the bot:

python3 bot.py