Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.08 KB

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 get github.com/snowypowers/teru

Create a .env file in your working directory (eg. root) with the following lines:

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

$ ./go/bin/teru

Links

Go - Programming language by Google Telegram - Messenging Service, supports games and bots! API.ai - Natural Language Interactions for Bots Data.gov.sg Developers - API Platform by SG Govt