vogt4nick / datascience-bot Goto Github PK
View Code? Open in Web Editor NEWArchived. Moved to https://github.com/datascience-bot/datascience-bot
License: MIT License
Archived. Moved to https://github.com/datascience-bot/datascience-bot
License: MIT License
Suppose we commented,
u/datascience-bot summarize activity
and the bot responded like
Bleep Bloop. I've been busy. Here's what I've been up to:
- I removed 5 submissions in the past 24 hours. That's 25% of all 20 submissions to r/datascience during that period.
- I removed 15 submissions in the past 7 days. That's 15% of all 100 submissions to r/datascience during that period.
I compiled this summary for you at 2019-10-08 01:29:47 UTC. Oh, and I'm still beta testing my commands; your "summarize activity" command may not work in the future.
That'd be pretty cool.
We can use a (free) travis-ci integration to deploy to AWS Lambda on any changes to master. Read about it here.
Same in spirit to #21, we should automate what we can. I'm less clear on how to do this one though. Probably gotta use praw's SubredditWidgets.
We're deploying to AWS Lambda automatically. May as well create the rules to run them as well.
Currently, u/datascience-bot replies to spam with this:
Your submission has been automatically removed. Videos are not allowed in r/datascience.
We should say something more direct, like
I removed your submission. Videos are not allowed in r/datascience.
Users often come to r/datascience looking for book recommendations. We have recommendations in the wiki, so it'd be nice if u/datascience-bot told them where to look. These requests can come as submissions or comments in the weekly thread.
Of course, the real difficulty here is flagging requests for book recommendations. This will require some clever programming or text classification.
Now that we're up and running, we should document the moving parts so that we can maintain it down the road.
Similar to #28. Users often come to r/datascience looking for podcast recommendations. We have recommendations in the wiki, so it'd be nice if u/datascience-bot told them where to look. These requests can come as submissions or comments in the weekly thread.
Of course, the real difficulty here is flagging requests for podcast recommendations. This will require some clever programming or text classification.
Travis sets the timeout to 3 seconds by default. We had it manually set to 15 before because it seemed to cause issues where calls aren't completing as expected.
Update .travis.yml
to timeout after 15 seconds.
Despite the username, it's not obvious to everyone that u/datascience-bot is not a human.
It may be useful to add boilerplate to submissions and comments to make clear how to resolve issues. e.g.
Bleep Bloop. I removed your submission to r/datascience. Videos are not allowed on r/datascience.
I am a bot created by the r/datascience moderators. If you think I've made a mistake, please message the mods. You can also review my source code on GitHub.
While we're automating everything, we may as well automatically update the wiki while we're at it.
We can use SubredditWiki and WikiPage praw objects.
Some questions go unanswered in the old weekly thread. When new weekly thread is created, respond to these comments with
A new week has begun, and a new weekly thread [has been posted](https://www.reddit.com/r/datascience/comments/d4ms47/weekly_entering_transitioning_thread_15_sep_2019/). Please feel free to repost your question in the new thread if you want higher visibility.
I am a bot created by the r/datascience moderators.
Why are blog posts considered as spam?
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.