Jump to content
pr00f

gophirc, an event based, multi server IRC framework written from scratch, in Go

Recommended Posts

gophirc

A simple IRC bot framework written from scratch, in Go.

 

Description

Event based IRC framework.

 

Warning

The API might break anytime.

 

Framework managed events

  • Manages server PING requests (not CTCP PING)
  • Registers on first NOTICE *
  • Identifies on RPL_WELCOME (event 001)
  • Joins the received invites & sends a greeting to the channel
  • Logs if the bot gets kicked from a channel

 

Features

  • Capability to connect to multiple servers
  • Multiple per event callbacks
  • State & general logging
  • Graceful exit handled either by a SIGINT (Ctrl-C)
  • Parses a user from an IRC formatted nick!user@host to a User{}
  • Config implements a basic checking on values
  • Already implemented basic commands - JOIN, PART, PRIVMSG, NOTICE, KICK, INVITE, MODE, CTCP commands
  • Many (?) more

 

More: https://github.com/vlad-s/gophirc

 

Bonus, IRC bot using gophirc - gophircbot: https://github.com/vlad-s/gophircbot

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...