Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunny/meuh
A stupid Slack and IRC Bot AI
https://github.com/sunny/meuh
Last synced: about 1 month ago
JSON representation
A stupid Slack and IRC Bot AI
- Host: GitHub
- URL: https://github.com/sunny/meuh
- Owner: sunny
- License: mit
- Created: 2014-10-06T17:02:06.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2021-07-10T08:03:20.000Z (over 3 years ago)
- Last Synced: 2024-10-10T00:59:42.181Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 34.2 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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 issueshttps://github.com/sunny/meuh