mirror of
https://github.com/fluffle/goirc
synced 2025-09-04 16:03:19 +00:00
reformat source with gofmt to nuke all of those unneeded semicolons
This commit is contained in:
parent
1c31d5fb47
commit
ae8e34ff0e
6 changed files with 474 additions and 477 deletions
|
@ -13,17 +13,17 @@ You can build the test client also with:
|
|||
make
|
||||
./gobot
|
||||
|
||||
This will connect to freenode and join #go-lang by default, so be careful ;-)
|
||||
This will connect to freenode and join `#go-lang` by default, so be careful ;-)
|
||||
|
||||
### Using the framework
|
||||
|
||||
The test client provides a good (if basic) example of how to use the framework.
|
||||
Reading irc/handlers.go gives a more in-depth look at how handlers can be
|
||||
Reading `irc/handlers.go` gives a more in-depth look at how handlers can be
|
||||
written. Commands to be sent to the server (e.g. PRIVMSG) are methods of the
|
||||
main \*irc.Conn object, and can be found in irc/commands.go (not all of the
|
||||
main `*irc.Conn` object, and can be found in `irc/commands.go` (not all of the
|
||||
possible IRC commands are implemented yet). Events are produced directly from
|
||||
the messages from the IRC server, so you have to handle e.g. "332" for
|
||||
RPL\_TOPIC to get the topic for a channel.
|
||||
`RPL_TOPIC` to get the topic for a channel.
|
||||
|
||||
The vast majority of handlers implemented within the framework implement state
|
||||
tracking of all nicks in channels that the client is also present in. It's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue