paramt / memeadviser Goto Github PK
View Code? Open in Web Editor NEWA reddit bot that evaluates memes and predicts growth on r/MemeEconomy
Home Page: https://param.me/MemeAdviser
License: Mozilla Public License 2.0
A reddit bot that evaluates memes and predicts growth on r/MemeEconomy
Home Page: https://param.me/MemeAdviser
License: Mozilla Public License 2.0
The algorithm used to calculate investment return and break-even points needs to be the same as the one the r/MemeEconomy bot uses. Instead of using a local copy, the bot should use the official one directly, so that if they were to update it, the bot would stay updated.
Instead of using replied.txt
to keep track of submissions that have already been replied to, we can use reddit's save feature. So writing to file would be replaced by saving a post on Reddit, and accessing that list would be something like:
replied = reddit.user.me().saved(limit=None)
Furthermore, subscribed.txt
can be replaced by a text submission in a private subreddit, which can be edited whenever the subscribed list needs to be updated
Description
The cronjob is scheduled to run every minute, but this is a problem when the bot has to send 100+ PMs because it takes more than 1 minute to execute and is interrupted by the next scheduled job before it gets a chance to finish
Lines 121 to 122 in aab7e5a
Possible Solutions
The codecov.yml file doesn't seem to be doing anything... codecov is still failing commits and the color range hasn't changed. The file doesn't have to be at root level, so that shouldn't be causing the problem.
I'll test some things out when I get home; just created this issue as a reminder
Use Google Sheets to store subscribed.txt
and replied.txt
.
Use Reddit's hot algorithm to ensure the current 2nd and 3rd hot submissions on the front page aren't close to any submissions the bot recommends.
If your adding Pytest, may as well add Codecov or Coveralls.io as additional tools.
Occasionally, the bot comments and sends a PM to everyone minutes apart. Before recommending any memes, the bot should check to make sure that a recommendation was not made in the same hour
The log can be viewed online in real-time
One way to do this is to save the log file in MemeAdviser.wiki
and run a shell script each time the program runs that looks like this:
#!/bin/bash
cd MemeAdviser.wiki/
git add .
git commit -m "Update log"
git push
CodeFactor found an issue: Try, Except, Pass detected.
It's currently on:
app.py:54
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.