Skip to content

snowypowers/teru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Teru - A SG Weather Bot on Telegram, powered by Go and API.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published