Skip to content

Instantly share code, notes, and snippets.

View Newlifer's full-sized avatar

Newlifer

  • Yaroslavl
View GitHub Profile
@Grab('pircbot:pircbot:1.4.2')
import org.jibble.pircbot.*;
def (host, port, channel) = ['chat.freenode.net', 6667, 'gitbot']
def bot = [:] as PircBot
bot.name = 'groovy_bot'
bot.encoding = 'ISO-2022-JP'
bot.connect host, port
bot.joinChannel channel