From 368648fc72d87f0e9c3311079e5f46f9fa65aa32 Mon Sep 17 00:00:00 2001 From: tilde-slash-me <117504489+tilde-slash-me@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:26:41 +0530 Subject: [PATCH] Add insidemollywood * Add InsideMollywood * Update own.cron --- .../channels/r_insidemollywood/__init__.py | 1 + .../channels/r_insidemollywood/app.py | 35 +++++++++++++++++++ .../channels/r_insidemollywood/tags.txt | 1 + reddit2telegram/own.cron | 3 +- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 reddit2telegram/channels/r_insidemollywood/__init__.py create mode 100644 reddit2telegram/channels/r_insidemollywood/app.py create mode 100644 reddit2telegram/channels/r_insidemollywood/tags.txt diff --git a/reddit2telegram/channels/r_insidemollywood/__init__.py b/reddit2telegram/channels/r_insidemollywood/__init__.py new file mode 100644 index 00000000..dc9a4dc9 --- /dev/null +++ b/reddit2telegram/channels/r_insidemollywood/__init__.py @@ -0,0 +1 @@ +# Just empty file diff --git a/reddit2telegram/channels/r_insidemollywood/app.py b/reddit2telegram/channels/r_insidemollywood/app.py new file mode 100644 index 00000000..fde3cdd9 --- /dev/null +++ b/reddit2telegram/channels/r_insidemollywood/app.py @@ -0,0 +1,35 @@ +#encoding:utf-8 + +from utils import weighted_random_subreddit + + +# Subreddit that will be a source of content +subreddit = weighted_random_subreddit({ + 'insidemollywood': 1.0, + # If we want get content from several subreddits + # please provide here 'subreddit': probability + # 'any_other_subreddit': 0.02 +}) +# Telegram channel with @reddit2telegram_bot as an admin +t_channel = '@r_insidemollywood' + + +def send_post(submission, r2t): + return r2t.send_simple(submission, + # Submission should have at least min_upvotes_limit upvotes. + min_upvotes_limit=20, + # If you do not want text submissions, just pass False. + text=True, + # If you want gifs, just pass True or text you want under gif. + gif=True, + # If you want videos, just pass True or text you want under gif. + video=True, + # If you want images, just pass True or text you want under image. + img=True, + # If you want Imgur albums, just pass True or text you want under albums. + album=True, + # If you want Reddit galleries, just pass True or text you want under albums. + gallery=True, + # If you do not want other submissions, just pass False. + other=False + ) diff --git a/reddit2telegram/channels/r_insidemollywood/tags.txt b/reddit2telegram/channels/r_insidemollywood/tags.txt new file mode 100644 index 00000000..e09d552a --- /dev/null +++ b/reddit2telegram/channels/r_insidemollywood/tags.txt @@ -0,0 +1 @@ +#malayalam #mollywood #gossips diff --git a/reddit2telegram/own.cron b/reddit2telegram/own.cron index 883f89f3..473103fa 100644 --- a/reddit2telegram/own.cron +++ b/reddit2telegram/own.cron @@ -675,6 +675,7 @@ MASK submodule_name 30 * * * * r_thehatedone 30 * * * * r_stray 30 * * * * brasildob +30 * * * * r_insidemollywood 31 * * * * r_dndgreentext # 15. 31 * * * * r_listentothis 31 * * * * r_woooosh @@ -824,4 +825,4 @@ MASK submodule_name 59 * * * * r_pokemonmasters 59 */2 * * * r_badcode 59 * * * * reddit_argentina -59 * * * * r_nikkemobile \ No newline at end of file +59 * * * * r_nikkemobile