https://github.com/horgh/godrop
An IRC client package suitable for creating bots
https://github.com/horgh/godrop
Last synced: 3 months ago
JSON representation
An IRC client package suitable for creating bots
- Host: GitHub
- URL: https://github.com/horgh/godrop
- Owner: horgh
- License: agpl-3.0
- Created: 2017-10-28T19:19:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-14T00:54:37.000Z (almost 7 years ago)
- Last Synced: 2025-01-24T22:34:44.420Z (5 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# godrop
This is an IRC client package. It is mainly useful for creating bots.## Adding functionality
You can add functionality to clients via packages.Packages can add to `godrop.Hooks` via an `init()` function. `godrop` calls
each hook with every IRC protocol message. This means you can take actions
based on anything that occurs on IRC.This repository includes these packages to add functionality:
### `duckduckgo`
This package makes the client respond to `!trigger` type commands on channels
to query [DuckDuckGo](https://duckduckgo.com).* `!ddg`/`.ddg` search and show the first 4 results
* `!ddg1`/`.ddg1` search and show the first result
* `!duck`/`.duck` search for an [instant
answers](https://duckduckgo.com/api)### `oper`
This package makes the client an IRC operator upon connect. You need to
define `oper-name` and `oper-password` in your client's configuration to
use it.### `recordips`
This package causes the client to record connecting IPs to a file. It's
based on [ircd-ratbox](http://ratbox.org/) notices. The bot must be an
operator to see these notices.