Skip to content
This handler will allow Alice to keep track of people laughing and reply with an image after 93 laughs. It also keeps track of how many times a user has "won" by triggering this handler.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib/alice/handlers
test
.formatter.exs
.gitignore
CHANGELOG.md
LICENSE
README.md
mix.exs
mix.lock

README.md

AliceHaha Hex Version Hex Downloads License: MIT

This handler will allow Alice to keep track of people laughing and reply with an image.

A laugh is considered any of the following:

~r/\b([ha][ha]+|lo+l|lmf?ao|rofl|roflmao)\b/i

Examples: lol haha lmao rofl loooool ha hahahahahaha roflmao lmfao

Installation

If available in Hex, the package can be installed as:

  1. Add alice_haha to your list of dependencies in mix.exs:
```elixir
defp deps do
   [
     {:websocket_client, github: "jeremyong/websocket_client"},
     {:alice, "~> 0.3"},
     {:alice_haha, "~> 1.0"}
   ]
end
```
  1. Add the handler to your list of registered handlers in mix.exs:
```elixir
def application do
  [applications: [:alice],
    mod: {
      Alice, [Alice.Handlers.Haha, ...]}]
end
```

Usage

Use @alice help for more information.

You can’t perform that action at this time.