Git Product home page Git Product logo

discordredditreader's People

Contributors

woophradu avatar

Watchers

 avatar  avatar  avatar

discordredditreader's Issues

start command (feature/enhanchement)

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:
image

or maybe have it react to the message, here an example of the animebot i have:
image

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!

fetches pinned posts

it works perfectly even setting an interval of 5 seconds.

the only problem is that it does not ignore the 'pinned post' for example:
image
image

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

Only fetch new post (improvement)

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:

  • xx1
  • xx2
  • xx3

when fetch_interval is over get posts.
obtained posts id are:

  • xx2
  • xx3
  • xx4

bot only posts xx4 since that is the only new post it got.

get posts from specific category (improvement)

this is pretty straight forward.

in the config have an option to select from which specific category you want the posts:
image

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

change thumbnail for embedded image (improvement)

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:
image

so my suggestion is to show posts like this (part of the content):
image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.