Home

Awesome

READMEUH

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

Example conversation

<quelquun> lu
<Meuh> stucru
<quelquun> lol
<Meuh> mdr
<quelquun> t'es nouvelle Meuh?
<Meuh> euh ouais
<quelquun> cool
<quelquun> où est-ce que t'habite ?
<Meuh> dtc
<quelquun> …
<quelquun> je déteste les gens.
<quelquun> s/gens/bots/
<Meuh> 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:

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

And use the Brain like this:

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:

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

Launch tests to make sure the brain still functions:

$ 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