package module
v0.0.0-...-4b0d3e3 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0


Joe Bot - IRC Adapter

IRC adapter.

IRC adapter for:

This simple IRC adapter forwards all messages directed to it on a particular channel to the brain. To direct a message to the bot, the IRC message needs to contain the bot's IRC nick prefixed with @ at the beginning, e.g. @thebot hello world makes the IRC adapter receive hello world. As the "channel", it uses the IRC nick of the user who sent the message. The "channel" will be used in responses to directly address the same user, in the form @user this is the response.


cfg := irc.Config{
	Address: "",
	Nick: "my-irc-bot",
	Name: "My IRC Bot",
	Channel: "#my-irc-channel",

b := &ExampleBot{
	Bot: joe.New("my-irc-bot", irc.Adapter(cfg),




This section is empty.


This section is empty.


func Adapter

func Adapter(cfg Config) joe.Module

Adapter accepts a Config object and returns a joe.Module that can then used when creating a new bot using joe.New.


type Config

type Config struct {
	Address string
	Nick    string
	User    string
	Pass    string
	Name    string
	Channel string

Config contains all the IRC configuration that you need. Required fields are Address, Nick and Channel.


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL