Skip to content

Commit

Permalink
Merge pull request #72 from DankCity/66-update-manifest
Browse files Browse the repository at this point in the history
66 update manifest
  • Loading branch information
levi-rs committed Dec 4, 2016
2 parents ac7634d + 78213e7 commit 0a9c1f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include versioneer.py
include dankbot/_version.py
include dankbot/sample.dankbot.ini
6 changes: 5 additions & 1 deletion dankbot/dankbot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import print_function

import random
from sys import platform
from datetime import datetime as dt

import praw
Expand All @@ -9,6 +10,7 @@
from slacker import Slacker
from praw.errors import HTTPException

from dankbot import __version__ as dankbot_version
from dankbot.memes import ImgurMeme, DankMeme, UndigestedError


Expand Down Expand Up @@ -82,7 +84,9 @@ def get_memes(self):
'''

# Build the user_agent, this is important to conform to Reddit's rules
user_agent = 'linux:dankscraper:0.0.3 (by /u/IHKAS1984)'
dankscraper_version = dankbot_version.split("+")[0]
user_agent = '{0}:dankscraper:{1} (by /u/IHKAS1984)'
user_agent = user_agent.format(platform, dankscraper_version)
self.logger.info("User agent: {0}".format(user_agent))

# Create connection object
Expand Down
File renamed without changes.

0 comments on commit 0a9c1f5

Please sign in to comment.