Skip to content

codescalers/statusbot

Repository files navigation

Statusbot

Overview

The Status Bot is a tool designed to send a reminder at specific time

Getting Started

Prerequisites

Ensure that you have installed:

  • Go programming language (version 1.21 or higher if not using docker)
  • Git

How to start

  1. Clone this repository to your local machine:
git clone https://github.com/codescalers/statusbot
cd statusbot 
  1. Setup your telegram bot and your env
  1. Run the bot:
  • Using go
go run main.go -b <your bot token> -t <notfication time (default to 17:00)> -z <timezone (default Africa/Cairo)> -d <path to database (default ~/.statusbot)>
  • Using Docker
docker build -t statusbot .
docker run -e STATUSBOT_TOKEN=<your bot token> -e NOTFICATION_TIME=<notfication time> -e TIMEZONE=<timezone> -e DATABASE=<path to database>-it statusbot

Create a bot

  • Open telegram app
  • Create a new bot
1. Find telegram bot named "@botfarther"
2. Type /newbot
  • Get the bot token
1. In the same bot named "@botfarther"
2. Type /token
3. Choose your bot