#mychannel — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mychannel, aggregated by home.social.
-
(2/2)Here's what the server sends back when I do this:
:ryjo!~ryjo@user/ryjo MODE #mychannel +lll 3 3 3
The server turned my +l+l+l 1 2 3 into +lll 3 3 3
This reveals one of the "rules" the server abides by that are not specified in the protocols themselves: If you happen to send multiple limits, it won't delete any of them.
Instead, it'll use the very last argument you sent.
It'll also smoosh the + signs into 1 + sign since the additional 2 are not necessary.
Useless info but fascinating.
-
https://github.com/cinchrb/cinch#example
cinch is an amazing library. Only took a few minutes to slap together a #Twitch bot; it helps that Twitch's chat API is really just an IRC server. Also has snazzy ANSI logging to boot. #rubybot = Cinch::Bot.new do
configure do |c|
c.server = "irc.chat.twitch.tv"
c.port = 6667
c.nick = "twitch_username_here"
c.password = "oath:..."
c.channels = %w[#mychannel]
endon :message do |m|
# ...
end
endbot.start