Closed Mariatta closed 5 years ago
πππ€ @Mariatta, I've formatted these files using black
:
cc @njsmith, what do you think?
Example post:
To deploy this, I'll need Gitter API token for the bot. And Heroku access.
:exclamation: No coverage uploaded for pull request base (
master@0a3b094
). Click here to learn what that means. The diff coverage is65%
.
@@ Coverage Diff @@
## master #1 +/- ##
======================================
Coverage ? 65%
======================================
Files ? 2
Lines ? 20
Branches ? 2
======================================
Hits ? 13
Misses ? 6
Partials ? 1
Impacted Files | Coverage Ξ | |
---|---|---|
tests/test_webservice/test_main.py | 100% <100%> (ΓΈ) |
|
webservice/__main__.py | 41.66% <41.66%> (ΓΈ) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 0a3b094...498637b. Read the comment docs.
Hey sorry for the slow followup here. This is super cool!
I tried setting up an account for the bot, and some bot inside github immediately flagged the new account as a suspected spammer and locked it down. No loyalty among bots! So I'm waiting for github support to untangle that, and then I'll get the API key...
I've never used Heroku at all, so I'm not quite sure what you need or where to start. I guess I need to make a Heroku account, and then sign up for a $7/month plan, since this has to run constantly?
For the RSS, let's use this feed: https://stackexchange.com/feeds/tagsets/289914/trio-project-tags-on-stackoverflow-filter?sort=active
(And let's include this link in the source, because this is where we can edit the search: https://stackexchange.com/filters/289914/trio-project-tags-on-stackoverflow-filter)
The sample post is pretty, but maybe a bit verbose to drop into the middle of conversations. Maybe we should slim it down to something like:
New {{tag}} question on stackoverflow: [{{title}}]({{url}})
?
For the RSS, let's use this feed: https://stackexchange.com/feeds/tagsets/289914/trio-project-tags-on-stackoverflow-filter?sort=active
(And let's include this link in the source, because this is where we can edit the search: https://stackexchange.com/filters/289914/trio-project-tags-on-stackoverflow-filter)
Done
maybe a bit verbose to drop into the middle of conversations. Maybe we should slim it down
Done.
I've never used Heroku at all, so I'm not quite sure what you need or where to start. I guess I need to make a Heroku account, and then sign up for a $7/month plan, since this has to run constantly?
Yeah. I guess technically it can be run from anyone's computer as a cron job? I'm only familiar with Heroku. Don't know if other cloud platform would be cheaper.
If you like, you can create a Heroku app, and add me as collaborator, that way I can continue and help maintain it. Or I can create the heroku app, and add you as collaborator?
For some reason, heroku won't let me connect to this repository.
These are the github orgs that I'm allowed to connect to:
Like the little message at the bottom says, I am missing a Github organization! So I followed the link. Here's the organizations that Heroku has access to:
So the two lists are identical except that Heroku hates the bots-for-humanity org and won't let me use it even though it has access.
wtf
Or I can create the heroku app, and add you as collaborator?
I guess this is the next thing to try? I don't want you to have to pay for my bot though...
Also I finally got the @trio-bot account sorted out. I can send you the gitter token over keybase β does that work?
For some reason, heroku won't let me connect to this repository.
π Hmm could you try again? I just gave you admin access to this repo. Can you also invite me to the heroku app? Perhaps it will let me install it.
I can send you the gitter token over keybase β does that work?
Yup. You can give it to me later, after we sort out Heroku first.
Hmm could you try again? I just gave you admin access to this repo.
No change :-(. I guess the problem is at the org level, before it even looks at repos?
Can you also invite me to the heroku app? Perhaps it will let me install it.
OK, added you as a collaborator on trio-gitter-app.herokuapp.com
(using your gmail address)...
Be on the lookout for new posts in stack overflow tagged with
python-trio
.Post the new question to Gitter.
Todo: write tests