{"id":13430271,"url":"https://github.com/alco/chatty","last_synced_at":"2025-03-16T17:36:42.813Z","repository":{"id":56841828,"uuid":"21479702","full_name":"alco/chatty","owner":"alco","description":"Basic IRC client for writing bots","archived":false,"fork":false,"pushed_at":"2016-09-10T07:27:05.000Z","size":68,"stargazers_count":36,"open_issues_count":13,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-04T06:51:45.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-03T23:16:50.000Z","updated_at":"2024-09-26T00:40:23.000Z","dependencies_parsed_at":"2022-08-29T12:51:17.598Z","dependency_job_id":null,"html_url":"https://github.com/alco/chatty","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alco%2Fchatty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alco%2Fchatty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alco%2Fchatty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alco%2Fchatty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alco","download_url":"https://codeload.github.com/alco/chatty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861835,"owners_count":16555980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:51.678Z","updated_at":"2024-10-11T09:22:26.541Z","avatar_url":"https://github.com/alco.png","language":"Elixir","funding_links":[],"categories":["Elixir","Chatting","Networking"],"sub_categories":[],"readme":"Chatty\n======\n\nA basic IRC client that is most useful for writing a bot.\n\n\n## Installation\n\nAdd Chatty as a dependency to your Mix project:\n\n```elixir\ndef application do\n  [applications: [:chatty]]\nend\n\ndefp deps do\n  [{:chatty, github: \"alco/chatty\"}]\nend\n```\n\n\n## Usage\n\nYou need to set the following environment parameters for the `:chatty` app:\n\n  * `:nickname` – the nick to use when connecting and identifying with NickServ\n  * `:channels` – a list of channel names to join upon connect\n  * `:password` (optional) – when set, Chatty will identify with NickServ using\n    this password\n\nChatty's behaviour is customized by means of adding hooks that get invoked on\neach incoming message. A ping hook is included as an example. Set it up as\nfollows:\n\n```iex\niex\u003e Chatty.add_hook :ping, \u0026Chatty.Hooks.PingHook.run/2, in: :text, direct: true\n:ok\n```\n\nNow, whenever Chatty sees the message `\u003cnickname\u003e: ping`, it will send a reply\nfrom the set of predefined ones back to the sender:\n\n```\n02:05:35      @true_droid | beamie_test: ping\n02:05:35      beamie_test | true_droid: pong\n```\n\n\n## License\n\nThis software is licensed under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falco%2Fchatty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falco%2Fchatty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falco%2Fchatty/lists"}