Skip to content

telegram bot for tracking anime release schedule

License

Notifications You must be signed in to change notification settings

kenjitheman/animun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tg bot for self use, was created coz I want to track anime release schedule

go logo docker logo

Installation

git clone https://github.com/kenjitheman/animun

Usage

  • Create .env file and inside you should create env variable with your api key:
TELEGRAM_API_TOKEN=YOUR_TOKEN
  • You need to uncomment these lines in bot.go if you are going to run it using go run or go build:
// "github.com/joho/godotenv"
// err := godotenv.Load("../.env")
// if err != nil {
// 	fmt.Println("[ERROR] error loading .env file")
// 	log.Panic(err)
// }
  • To run it:
go run main.go
  • Or build and run:
go build
./animun

Run it using Docker:

  • You need to paste your api key in dockerfile:
ENV TELEGRAM_API_TOKEN=YOUR_API_TOKEN
  • Run it:
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name

Contributing

  • Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  • Please make sure to update tests as appropriate.

License