woophradu / discordredditreader Goto Github PK
View Code? Open in Web Editor NEWA bot that takes posts from Reddit and puts them into Discord channels.
A bot that takes posts from Reddit and puts them into Discord channels.
right now everything is done by the config.ini
maybe this can be a good feature to have a '!start [subreddit] [post amount] [interval]' command and it starts getting the reddit posts on that channel.
that way you only have to run the command and it will add it to the config.ini or something.
here an example of the twitter bot i have:
or maybe have it react to the message, here an example of the animebot i have:
and for extra enhancement you can give each post an interval.
these are all the ideas i had for a perfect reddit bot. I'm already happy with what it is but i can imagine the possibilities!
it works perfectly even setting an interval of 5 seconds.
the only problem is that it does not ignore the 'pinned post' for example:
since it captures the same post over and over i guess it would be nice for the bot to store the id of the last 100 posts submitted or something, that way a user does not get duplicates. its not obligated to post if nothing new is found.
for now it works with multiple channels and multiple subreddits.
here the log file:
bot.log
Have an option in the config that makes the bot bot only fetch new posts.
since you have the option to get a 'post_amount' maybe you can have a secondary option
callled 'only_new_posts' which compares the last posts submitted.
example:
post_amount = 3
only_new_posts = true
last 3 posts id where:
when fetch_interval is over get posts.
obtained posts id are:
bot only posts xx4 since that is the only new post it got.
this is pretty straight forward.
in the config have an option to select from which specific category you want the posts:
example in config:
[Channel1]
channel_id = 783981993577807884
subreddits = memes
post_amount = 10
category = new
[Channel2]
channel_id = 783981220191010816
subreddits = dankmemes
post_amount = 10
category = hot
So you don't have to delete the config each time I update the default config, cus it's getting annoying.
right now the posts are showing correctly but most people on discord only care about seeing the image right there.
right now it is shown as a thumbnail:
so my suggestion is to show posts like this (part of the content):
that way people can see the post right there instead of needing to click on the thumbnail or image.
right now to see the image clearly you have to click on it.
basically everything stays the same just have the post show bigger if possible.
the rest is working as intended.
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.