animun

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 1 Imported by: 0

README

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

go logo docker logo

project structure

.
├── api
│   ├── api.go
│   └── api_test.go
├── bot
│   ├── bot.go
│   ├── keyboards.go
│   └── vars.go
├── Dockerfile
├── go.mod
├── go.sum
├── LICENSE
├── main.go
└── README.md

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL