gobridge / gopherbot Goto Github PK
View Code? Open in Web Editor NEWSource code for the gopher Slack Bot rewrite
License: MIT License
Source code for the gopher Slack Bot rewrite
License: MIT License
If you respond to a message in a thread, but also share the message to the channel, the bot does not respond to the message. Would the proper action be to also share the response to the channel, or to just respond in the thread? Either way, there needs to be some sort of reaction.
After my PR was rejected in the old repo, would it make sense to reopen it here?
gobridge/gopher#39
xkcd:ballmer should all alias to xkcd:323 for quick access to the Ballmer peak comic
It looks like Heroku CI only tests branches on this repo, and not pull requests to this repo from others. That's a pretty terrible experience, so we'll need to invest in some other CI system.
I would like to emit a count of open issues/PRs to #pion. My hope is that if people see the work that is available it will encourage more people to get involved!
I can write it in a general way so people can submit their own queries. I want to do the following queries. Would be nice to share the link, a label and the count.
We should point folks to the #newbies channel if they are asking for newbie resources
. It probably makes sense for the newbie resources
command to take the channel in to account, and only recommend #newbies if we aren't already in that channel.
Add a simple command to define a word. I was thinking this should be an API somewhere we can hit to get a reasonable answer but realistically it will have to be a curated list.
The terms to be defined would probably just be Go terms, but there could be a fallback to a dictionary API for ESL people. It's probably over-complicating though.
Previous discussion here: gobridge/gopher#33
Since the Twitter app has been de-authorized on Gophers Slack; updates from the GoTime Twitter Feed / Mastodon Feed will no longer work. The preferred way of pushing these updates to Slack is through Gopher Bot.
This issue is to propose adding this support to the existing bgtask for gotime.
Create a new package internal/poller/gotimestatus
Define NotifyFunc in internal/poller/gotimestatus
. This function is called by poller/gotimestatus.GoTimeStatus
whenever a new Mastodon post is discovered with the URL of the status.
type NotifyFunc func(ctx context.Context, statusURL string) error
Poll @[email protected]
using the Account/Statuses API: https://changelog.social/api/v1/accounts/109349735213354404/statuses?since_id=LAST_ID
since_id
Create cmd/bgtasks/gotimestatus.go
to set up the gotime status poller.
Define goTimeStatusNotifyFactory
in gotimestatus.go
that creates a function which uses the Slack Client to call chat.postMessage with unfurl_links=true
and the statusURL as text. This allows Slack to do most of the heavy lifting reading the HTML from Mastodon and translating that into a Slack post. Example Below.
Originally I had proposed to modify the gotime poller to add this functionality. But I did a little PoC and it is much cleaner to make a new package and copy/paste the implementation into the new package, making the necessary modifications. It gets real messy trying to shoehorn it into the existing poller.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.