infras

Month: 2019-04

2019-04-01

caasi 01:53:24
@patcon Is it possible to make the translation part a plugin or module? Where can I find your repo? I want to learn more about it.
caasi 01:55:11
I think a good sharing infra should be easy to understand and easy to replace.
caasi 01:56:05
My attempt to build a all-in-one site for logs is a failure.
patcon 05:12:53
I don't think matterbridge has a plugin system, but it can be pretty isolated, I feel. And I live you logbot! But it could work generally from the matter bridge api.

Want to book a call next week?

2019-04-02

patcon 02:39:25
Hey @pm5, I'm down to do a call whenever you have time to discuss this: https://twitter.com/patconnolly/status/1109931129723711493
patcon 02:41:25
Also, this is a convo among a few meetup groups in Toronto, which we could do more widely as a solidarity-building tactic :)

https://twitter.com/patconnolly/status/1109995351178510336?s=19

2019-04-03

caasi 15:27:07
@patcon the preferred bot name can be `/slack.*bot.*/`, so https://logbot.g0v.tw/channel/g0v.tw/today can identify they as a bot.
caasi 15:27:28
After that I will stop the current logbot.
caasi 15:28:52
@patcon Pick a date. I’m free to make a call after 19:00GMT+8 after next monday.
caasi 15:32:06
https://github.com/g0v/Logbot/blob/master/app.rb#L80

GitHub

g0v/Logbot

Simple IRC logger with realtime web-based viewer. Contribute to g0v/Logbot development by creating an account on GitHub.

2019-04-11

caasi 12:24:05
@patcon ping?

2019-04-22

2019-04-24

caasi 22:12:26
@patcon: telegram bridge is running by @gugod.
caasi 22:14:07
I am not going to replace all logbot services right now.
patcon 22:15:57
ok, so i'm just updating the readme here so that there is a bit more explanation of what this repo's configuration file is doing that is g0v-specific :slightly_smiling_face:
https://github.com/patcon/matterbridge-heroku

GitHub

patcon/matterbridge-heroku

A Heroku buildpack to help bridge chat tools like Slack. - patcon/matterbridge-heroku

caasi 22:16:14
I just want to retire the slack-irc-bridge because it’s a speed hack by @yhsiang++ and it’s hard to maintain now.
caasi 22:16:19
Here is the repo: https://github.com/g0v/slack-irc-plugin

GitHub

g0v/slack-irc-plugin

Slack plugin to sync IRC with your <http://slack.com|slack.com> account - g0v/slack-irc-plugin

caasi 22:21:53
to check if it transform your bot name correctly
caasi 22:25:52
Because I don’t own the logbot machine myself. If you want to running your matterbridge on it. You may have to ask @au for the access right. After she nod, I can create an account for you.
patcon 23:29:17
re: chat bridge migration to matterbridge (to keep things in thread)
patcon 23:29:22
i think it's working, but just finding an irc client to install on this new mac, and I'll doublecheck
caasi 23:38:42
Ok I’ll tweak logbot frontend to match the new format
caasi 23:41:58
can you remove the `@slack-legacy` suffix so messages
caasi 23:42:25
will be more readable to irc users.
caasi 00:03:37
surround slack usernames with other symbol maybe a good idea
patcon 01:43:33
actually, @slack-legacy is what tells people where the message in coming from, though it's redundant here -- it's set on the level of the IRC service, and since I'm using that in another non-g0v gateway, it's where it would say "caasi@telegram", which is important in my other gateways. There's def a way to fix it, but it admittedly serves a purpose elsewhere. would it be ok to leave for now?
caasi 01:45:01
I am ok with that. :smile:
patcon 01:45:28
The format will always be NICK@PROTOCOL for now (and protocol is actually the name of the adapter for the protocol, which is "slack-legacy" here)
patcon 01:46:22
@caasi are the empty messages the issue you were referring to originally, or was there something else? (i can only see the ones from my tests)
patcon 01:46:45
they seem to only happen frame translation channels, i think
patcon 01:48:49
actually nm. seems all messages get two blanks before. investigating logs now: https://gist.github.com/patcon/cf4c2fc29dfc188fd320bc43c905d5c2
caasi 01:48:52
It’s it possible to not emit those empty messages?
caasi 01:49:20
@patcon++
patcon 01:51:04
AH. ok, it's the user_typing events that are going through! ok, this should be easy. was prob fixed on mainline and we're just outta date
patcon 02:25:26
https://github.com/42wim/matterbridge/issues/814

seems a little bigger than expected. perhaps best to just disable user_typing events on matterbridge for g0v-tw team for now.

https://github.com/patcon/matterbridge-heroku/pull/7/files#diff-33fc4e8f729e701c74eb968dbfc094e6
patcon 02:25:32
ok disabled for now.
patcon 02:26:22
also, this might be different functionality: when a messages is editted on slack, it sends the new text of the message through again to IRC. but on our fork, it doesn't really make it clear, and so it might look like someone repeating themselves (perhaps passive-agressively)
patcon 02:27:03
i think there's a better fix in the mainline (where the editted message is prefixed with "edit:"), but rebasing is more than I have the space to do today...!

2019-04-25

caasi 01:50:34
the new bot name pattern: https://github.com/g0v/Logbot/blob/master/app.rb#L80

GitHub

g0v/Logbot

Simple IRC logger with realtime web-based viewer. Contribute to g0v/Logbot development by creating an account on GitHub.

patcon 02:31:04
looks ok, but just fyi that this will be brittle for if/when telegram bridging is enabled for matterbridge because the same NICK will be dropping telegram messages, and so it'll make sense to rename it to `g0v-matterbridge` or `g0v-bridge` (instead of `g0v-slack`)
patcon 02:31:27
we could just use a more universal name now, and so it won't need changing later?
patcon 02:32:35
@caasi thoughts?
patcon 02:34:32
maybe `g0v-bridgebot`? (since ppl don't really need to know the name of matterbridge software, i suppose)
caasi 02:35:03
upvote for g0v-bridge
patcon 02:35:11
ok one sec
caasi 02:36:01
I hope the name can be as short as possible
caasi 02:37:11
[TTT] looks like a bridge (not :joy:
patcon 02:37:21
hm. ok, lemme check about shortening that other bit `@slack-legacy`. I think i can do a work-around, though might be more brittle later
patcon 02:38:25
i wonder if :bridge_at_night: would work...
caasi 02:39:09
slack-legacy is fine for now it should be set in a config file or environment variables
caasi 02:39:47
you can only use ASCII characters in IRC nick name :joy:
patcon 02:40:54
caasi 02:41:18
So [o_o] can be a funny bot name :joy:
patcon 02:44:04
heh just lemme know if you want that :slightly_smiling_face:

i admit that I usually prefer explicit text stuff that's self-documenting (esp for non-tech ppl who might arrive), but it's a little different for IRC users who we could assume are super tech-savvy :slightly_smiling_face:
patcon 02:44:45
omg it's late for you
caasi 02:48:28
omg it’s late for me :scream_cat:
caasi 02:50:00
Some of my friends are stick with IRC and have no Slack account here.
patcon 02:50:33
and i toooootally support people using whatever tools they feel like :slightly_smiling_face:
caasi 02:50:34
So I don’t want to mess-up the IRC-side too much.
patcon 02:50:49
yes yes me too. i'm glad to do this with you!
patcon 02:50:59
let me know if anything goes funny
patcon 02:51:14
oh, one last thing -- how did file attachments work before?
caasi 02:52:01
file attachments got ignored totally before :joy:
caasi 02:52:14
so it’s a great improvement
patcon 02:53:01
oh hey, we can have a default avatar for messages from IRC. any suggestions?
caasi 02:53:47
I will check IRC ACTIONs later. maybe tomorrow.
patcon 02:53:52
note that those file links will only work for logged in ppl, so they'll still feel pressure to sign up for slack :slightly_smiling_face:
caasi 02:55:53
can matterbridge get a public mail address by user id?
patcon 02:57:11
public mail address? as in for private messaging?
patcon 02:57:40
and sorry, where would this public mail address come from? from slack?
caasi 02:57:45
if it’s possible to look up Gravatar for thumbnails.
patcon 02:58:07
OH. does IRC have email attached? didn't even know
caasi 02:59:04
guess Slack username from IRC nick and then search for it’s thumb
patcon 02:59:32
for now, that's not doable, but it could be added
caasi 02:59:34
I don’t have any specific icon in my mind
patcon 02:59:45
right now, it can generate a unique identicon from a nick
patcon 03:01:28
i thought i had this enabled here:
https://github.com/patcon/matterbridge-heroku/blob/master/config/config-heroku-template.toml#L10

so might need to investigate why messages coming from IRC aren't being given an avatar...

GitHub

patcon/matterbridge-heroku

A Heroku buildpack to help bridge chat tools like Slack. - patcon/matterbridge-heroku

patcon 03:02:41
ah actually, figured it out... i have underscores in my IRC nick, and github's identicon service doesn't like that: https://github.com/identicons/patcon___.png
patcon 03:03:13
good reason to switch to robohash: https://robohash.org/patcon___.png

caasi 03:06:14
and they have cats in set4!
patcon 03:08:36
haha i didn't even realize there were sets...! wanna use that?
caasi 03:09:09
YES! YES! YES!
caasi 03:09:45
I have to sleep. Thank you for everything. @patcon++
patcon 03:11:35
haha no worries! sleeeeeep well @caasi!
patcon 03:11:40
:tada: