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?
ok, let's try this again: how about I get your email (assuming you use gcal), and then I'll invite you to a few 9am ET options for days this week (9pm TT), and you can just accept the one your want and decline the others? (i keep dropping the ball on this bc i'm not in the g0v slack much these days, but i'll DEF see my google calendar every day)

(my gmail is patrick.c.connolly@gmail.com)
My email is caasi.igd@gmail.com. I will see my calendar every day too.

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 🙂
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.
👌 1
patcon 23:29:17
re: chat bridge migration to matterbridge (to keep things in thread)
i think it's working, but just finding an irc client to install on this new mac, and I'll doublecheck
Ok I’ll tweak logbot frontend to match the new format
can you remove the `@slack-legacy` suffix so messages
will be more readable to irc users.
surround slack usernames with other symbol maybe a good idea
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?
I am ok with that. 😄
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)
@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)
they seem to only happen frame translation channels, i think
actually nm. seems all messages get two blanks before. investigating logs now: https://gist.github.com/patcon/cf4c2fc29dfc188fd320bc43c905d5c2
It’s it possible to not emit those empty messages?
@patcon++
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
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
ok disabled for now.
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)
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 😂
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 🌉 would work...
caasi 02:39:09
slack-legacy is fine for now it should be set in a config file or environment variables
👌 1
caasi 02:39:47
you can only use ASCII characters in IRC nick name 😂
caasi 02:41:18
So [o_o] can be a funny bot name 😂
patcon 02:44:04
heh just lemme know if you want that 🙂

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 🙂
patcon 02:44:45
omg it's late for you
caasi 02:48:28
omg it’s late for me 🙀
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 🙂
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 😂
🎉 1
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 🙂
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
🎉