Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snowypowers/teru
Teru - A SG Weather Bot on Telegram, powered by Go and API.ai
https://github.com/snowypowers/teru
Last synced: 1 day ago
JSON representation
Teru - A SG Weather Bot on Telegram, powered by Go and API.ai
- Host: GitHub
- URL: https://github.com/snowypowers/teru
- Owner: snowypowers
- Created: 2017-03-23T06:53:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T06:04:01.000Z (almost 8 years ago)
- Last Synced: 2024-11-18T03:26:37.542Z (2 months ago)
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teru - SG Weather Bot
A Telegram bot for SG Weather written in Go. Conversations powered by API.AI. Data taken from NEA through data.gov.sg.
A simple chatbot on Telegram with NLP integrations. Retrieve 2 hour Nowcasts through the command `/weather`. Done as a project to pick up Golang.
## Try
The bot is hosted on Telegram under the tag @teru_bot## Requirements
Golang (v1.8)
## Installation
```go
go get github.com/snowypowers/teru
```Create a `.env` file in your working directory (eg. root) with the following lines:
```env
DATA_API_KEY = (API Key to access data.gov.sg API)
BOT_TOKEN = (Bot Token provided by Telegram)
NLP_TOKEN = (NLP Client Access Token provided by API.ai)
WEBSITE_LINK = (Your base website address)
```From your working directory, run
```sh
$ ./go/bin/teru
```
## Links[Go](https://golang.org/) - Programming language by Google
[Telegram](https://telegram.org/) - Messenging Service, supports games and bots!
[API.ai](https://api.ai/) - Natural Language Interactions for Bots
[Data.gov.sg Developers](https://developers.data.gov.sg/) - API Platform by SG Govt