Skip to content

piguet/yatzie

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yatzie - A telegram bot written in Golang

Gitter

A customizable, pluggable Bot for telegram. Work in progress.

Demo bot: @hella_bot

Bot Commands

Name Description Usage
9gag 9GAG for telegram /gag: Send random image from 9gag
admin Administration plugin, enable, disable and list active plugins /load [plugin] - Load the specified plugin
/unload [plugin] - Unloads the specified plugin
/listplugins - List all plugins enabled/disabled
dogr Create a doge image with words. /doge BLA BLA BLA - Create a doge image with the words.
google Searches Google and send results /search [terms]: Searches Google and send results
/imgsearch [terms]: Searches Google Images and send results
hal Let the bot listen and learn say something to him or mention him (@bot)
hello Let the bot says hello /hi to say hello
help Help plugin. Get info from other plugins. /help: Show list of plugins
imdb IMDB plugin for Telegram /imdb [movie]
8ball Magic 8Ball /8ball [question]
norris Send a random Chuck norris quote /norris
nsfw Gets a random boobs or butts pic /boobs: Get a boobs NSFW image. 🔞
/butts: Get a butts NSFW image. 🔞
xkcd Send comic images from xkcd /xkcd (id): Send an xkcd image and title. If not id, send the latest one

Installation

go build github.com/go-telegram-bot/yatzie

Configuration

The bot reads a json file for configuration:

{
        "Token" : "XXXXXXX",
        "CommandPrefix" : "/",
        "Eloquens" : true,
        "HALBrainfile" : "Brain.json",
        "HALMarkovChainOrder" : 3,
        "Administrators" : {
            "telegramusername" : true,
            "telegramusername2" : true
        }
}
  • Token: required - Telegram's Botfather will give you one
  • CommandPrefix - optional, you can change /help in !help for example
  • Eloquens - optional, being talkative
  • HALBrainfile - optional, it's for the HAL plugin (where the bot brain will reside)
  • HALMarkovChainOrder - optional, it's for the HAL plugin, tweaks the MC construction

Run

$ yatzie -c yatzie.conf -l yatzie.log

About

A pluggable telegram-bot written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.8%
  • Makefile 1.2%