-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unknown
committed
Jan 4, 2024
1 parent
c721654
commit d5bd799
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Just empty file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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({ | ||
'NikkeMobile': 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_nikkemobile' | ||
|
||
|
||
def send_post(submission, r2t): | ||
return r2t.send_simple(submission, | ||
# Submission should have at least min_upvotes_limit upvotes. | ||
min_upvotes_limit=50, | ||
# 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=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#nikke #mobile #shiftup #rpg #mobilegame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters