Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kleidukos/irssi-hs
A Haskell library to communicate with a running irssi through the Irssi::Instance plugin
https://github.com/kleidukos/irssi-hs
haskell irssi
Last synced: 5 days ago
JSON representation
A Haskell library to communicate with a running irssi through the Irssi::Instance plugin
- Host: GitHub
- URL: https://github.com/kleidukos/irssi-hs
- Owner: Kleidukos
- License: other
- Created: 2020-04-20T22:14:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T00:05:20.000Z (over 4 years ago)
- Last Synced: 2024-12-17T03:09:00.751Z (6 days ago)
- Topics: haskell, irssi
- Language: Haskell
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# irssi-hs [![Simple Haskell][simple haskell]](https://www.simplehaskell.org) ![Haskell CI][ci]
This library allows you to speak to irssi through the `Irssi-Instance` irssi plugin.
:warning: This is a work in progress
## Usage
Start the worker that will speak to the socket
```haskell
import Irssimain :: IO ()
main = do
let command = Msg Message{cmd="msg", network="freenode", channel="#bottest", message="I am alive!"}
Right irsiState <- runExceptT (startWorker "/home/foo/.irssi.sock")
sendMessage command (stargate irssiState)
```[simple haskell]: https://www.simplehaskell.org/badges/badge.svg
[hackage]: https://img.shields.io/hackage/v/irssi-hs.svg
[ci]: https://github.com/kleidukos/irssi-hs/workflows/Haskell%20CI/badge.svg