Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunny/meuh

A stupid Slack and IRC Bot AI
https://github.com/sunny/meuh

Last synced: 2 months ago
JSON representation

A stupid Slack and IRC Bot AI

Awesome Lists containing this project

README

        

READMEUH
========

Meuh is a very low artificial intelligence for a very stupid bot companion for
Slack or IRC.

Example conversation
--------------------

lu
stucru
lol
mdr
t'es nouvelle Meuh?
euh ouais
cool
où est-ce que t'habite ?
dtc

je déteste les gens.
s/gens/bots/
je déteste les bots.

Usage
-----

## Slack

Check out `examples/slack_bot.rb`.

## IRC

Check out `examples/cinch_bot.rb`.

## Elsewhere

If you want to integrate Meuh's brain in another messaging system,
you can add it to your Gemfile:

```rb
# A stupid Slack and IRC Bot AI
gem "meuh"
```

And use the Brain like this:

```rb
require "meuh"

bot = Meuh::Brain.new(botname: "TODO")
bot.message(nickname: "TODO", message: "TODO", nicknames: ["TODO", "TODO"]) do |response|
puts response
end
```

Development
-----------

You will need git, Ruby and the bundler gem. Then you should:

```sh
$ git clone https://github.com/sunny/meuh
$ cd meuh
$ bundle
```

Launch tests to make sure the brain still functions:

```sh
$ bundle exec rspec
```

Contributing
------------

Feel free to contribute by adding more stupidity to this bot. Please send
patches through Github pull requests and submit bugs through Github issues

https://github.com/sunny/meuh