Hubot change IRC channel topic

249 views Asked by At

I'd like our Hubot to manage the topic of certain IRC channels. When I have hubot send "/TOPIC #channel New Topic" that text just ends up in the channel.

I know I can add a listener for IRC topic changes (like irc-topic.coffee) with:

robot.adapter.bot.addListener 'topic', (channel, topic) ->

But is there an interface to setting the topic or a way to coerce hubot-irc adapter into send a raw IRC command?

1

There are 1 answers

0
d4v3y0rk On

https://github.com/nandub/hubot-irc/blob/master/src/irc.coffee#L40

it looks like you just setup the listener and then topic = "thing the topic should be"