Skip to content

Commit fe6d93e

Browse files
committed
Merge pull request #4 from markekraus/3.03
Version 3.03
2 parents 9ffaf11 + 1c664ec commit fe6d93e

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

modbot.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Bot settings
22
# mod bot version text
3-
bot_ver = '3.02'
3+
bot_ver = '3.03'
44
# Amount of time in seconds to wait between pulls of the top 100 submissions 86400 = 1 day
55
bot_reloadTopSubsSec = 86400
66
# Number of top all time submissions to pull

modbot.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def video_id(value):
185185
# AND make sure this post is not a top post itself
186186
if ytvid in topsubmissionvids and submission.id not in topsubmissionsids:
187187
print '!!!! Repost of a top ' + str(bot_topSubsLimit) + ' submission !!!'
188-
reasons.append('* This video is in the [top ' + bot_topSubsLimit +'](http://www.reddit.com/r/'+ r_subredit +'/top/?sort=top&t=all) submission of all time in this sub. ')
188+
reasons.append('* This video is in the [top ' + str(bot_topSubsLimit) +'](http://www.reddit.com/r/'+ r_subredit +'/top/?sort=top&t=all) submission of all time in this sub. ')
189189
try:
190190
# Take a break before searching for reposts, but only if not enough time since the last search has passed.
191191
sleepfor = max(0.0, bot_sleepsec - (time.time() - loopstart))
@@ -283,6 +283,15 @@ def video_id(value):
283283
e = sys.exc_info()[0]
284284
print '**Main For loop failed: %s' % str(e)
285285
print 'time: ' + time.strftime("%c")
286+
print 'Submission Info:'
287+
try:
288+
pprint(submission.url)
289+
pprint(submission.permalink)
290+
pprint(submission.title)
291+
pprint(submission.author)
292+
already_done.append(submission.id)
293+
except:
294+
pass
286295
print ''
287296
# Time to sleep again before the next loop itteration.
288297
loopend = time.time()

0 commit comments

Comments
 (0)