Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nezutero/animun

telegram bot for tracking anime release schedule
https://github.com/nezutero/animun

anime anime-api go golang golang-application golang-tools telegram telegram-bot telegram-bot-api tg tgbot

Last synced: about 1 month ago
JSON representation

telegram bot for tracking anime release schedule

Awesome Lists containing this project

README

        

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

###

###


go logo

docker logo

###

## Installation

```sh
git clone https://github.com/nezutero/animun
```

## Usage

- Create .env file and inside you should create env variable with your api key:

```.env
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:

```go
// "github.com/joho/godotenv"
```

```go
// err := godotenv.Load("../.env")
// if err != nil {
// fmt.Println("[ERROR] error loading .env file")
// log.Panic(err)
// }
```

- To run it:

```sh
go run main.go
```

- Or build and run:

```sh
go build
```

```sh
./animun
```

#### Run it using Docker:

- You need to paste your api key in dockerfile:

```dockerfile
ENV TELEGRAM_API_TOKEN=YOUR_API_TOKEN
```

- Run it:

```sh
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

- [MIT](./LICENSE)