diff options
author | Teddy Wing | 2017-08-13 18:39:34 +0200 |
---|---|---|
committer | Teddy Wing | 2017-08-13 18:39:34 +0200 |
commit | f6d317f1e36f7fbd83e5f47b54a3c1f5a5ceedde (patch) | |
tree | 878d8c8ab15867cc7a3e4febfedc85b69e1412ad /sorbot.cabal | |
parent | 9d034f464797fd469053ba00ed28f571e0677a86 (diff) | |
download | sorbot-f6d317f1e36f7fbd83e5f47b54a3c1f5a5ceedde.tar.bz2 |
Lib.hs: Bot now responds on the channel that message came from
Instead of always responding on a hard-coded channel, the bot now
responds on the channel the PRIVMSG was received on. This can be either
a regular channel or a query message.
The `serv` argument is apparently the message sender's hostname. Wanted
to print it out to see what that argument was.
I had been following this example from "barrucadu"'s 'yukibot':
https://github.com/barrucadu/yukibot/blob/31930b234eb423ed74546b56ada100105c1680ce/yukibot-backend-irc/Yukibot/Backend/IRC.hs#L152-L156
but the code ignored the first `Event` argument. In order to send it as
a chat message, needed to convert it to a `Data.Text`, using the method
courtesy of this tutorial:
https://haskell-lang.org/tutorial/string-types
Diffstat (limited to 'sorbot.cabal')
0 files changed, 0 insertions, 0 deletions