Git Product home page Git Product logo

otouto's Introduction

otouto

The plugin-wielding, multi-purpose Telegram bot.

Public bot runs on @mokubot.

To start, send "/start" or say "Hello, otouto."

##Plugins

help.lua /help [command] List commands
about.lua /about Information about the bot
gSearch.lua /google <query> Google Search
gImages.lua /images <query> Google Images search
reddit.lua /reddit [r/subreddit | query] Posts from reddit
giphy.lua /giphy [query] Giphy search or random
xkcd.lua /xkcd [search] xkcd strips and alt text
gMaps.lua /loc <location> Google Maps search
imdb.lua /imdb <movie | TV series> IMDb movie/television info
urbandictionary.lua /ud <term> Urban Dictionary search
hackernews.lua /hackernews Top stories from Hackernews
time.lua /time <location> Get the time for a place
weather.lua /weather <location> Get the weather for a place
calc.lua /calc <expression> Solve math expression and convert units
dice.lua /roll [arg] Roll a die. Accepts D&D notation
remind.lua /remind <delay> <message> Set a reminder for yourself or a group
8ball.lua /8ball Magic 8-ball
bandersnatch.lua /bandersnatch Benedict Cumberbatch name generator
bible.lua /bible <verse> King James Version
btc.lua /btc <currency> [amount] Bitcoin prices and conversion
commit.lua /commit http://whatthecommit.com
dogify.lua /dogify <lines/separatedby/slashes> Create a doge image
echo.lua /echo <text> Repeat a string
fortune.lua /fortune Random fortunes
hex.lua /hex <number> Convert to and from hexadecimal
pokedex.lua /dex <pokemon> Pokedex!
pun.lua /pun Puns
slap.lua /slap [victim] Slap someone!
whoami.lua /who Get user and group IDs

##Setup

Requires Lua, lua-socket and lua-sec. dkjson is provided. Written for Lua 5.2 but will probably run on 5.3.

You must have a Telegram bot and auth token from the BotFather to run this bot. telegram-cli is not required.

###Configuration

To begin, copy config.lua.default to config.lua and add the relevant information.

Most config.lua entries are self-explanatory.

Add your bot API key, and other API keys if desirable. The plugins which require API keys that are not provided are disabled by default. The provided Giphy key is the public test key, and is subject to rate limitaton.

The "fortune.lua" plugin requires the fortune program to be installed on the host computer.

"time_offset" is the time difference, in seconds, between your system clock. It is sometimes necessary for accurate output of the time plugin.

"admins" table includes the ID numbers, as integers, of any privileged users. These will have access to the admin plugin and any addition privileged commands.

"people" table is for the personality plugin: ["55994550"] = "topkecleon"

ID number must be a string. The second string is the nickname to be given to the identified user when a personality greeting is triggered.

To run:

lua bot.lua

##Support

Do not private message me for support.

For support for otouto as well as general Lua and bot assistance, please join the Bot Development group (send "/join 16314802" to @Liberbot. After you read the rules and the pastebin, I will assist you there.

###PS

Since there seems to be some confusion on the matter, otouto is not a port of yagop's telegram-bot. I am friends with yagop, and he is part of the Bot Development group, but our codebases are and always have been entirely separate. otouto was a CLI bot like telegram-bot before the new API, but they were entirely separate, non-intermingled projects.

otouto's People

Contributors

topkecleon avatar akronix avatar tiagodanin avatar

Watchers

rosa maria palacios juncosa avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.