mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Merge branch 'testing' into 'master'
1.14.0.1 Closes #227 See merge request piotrex43/RcGcDw!96
This commit is contained in:
commit
82764fc1ff
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='RcGcDw',
|
name='RcGcDw',
|
||||||
version='1.14',
|
version='1.14.0.1',
|
||||||
packages=[''],
|
packages=[''],
|
||||||
url='https://gitlab.com/piotrex43/RcGcDw/',
|
url='https://gitlab.com/piotrex43/RcGcDw/',
|
||||||
license='GNU GPLv3',
|
license='GNU GPLv3',
|
||||||
|
|
|
@ -28,7 +28,7 @@ def load_settings():
|
||||||
if settings["limitrefetch"] < settings["limit"] and settings["limitrefetch"] != -1:
|
if settings["limitrefetch"] < settings["limit"] and settings["limitrefetch"] != -1:
|
||||||
settings["limitrefetch"] = settings["limit"]
|
settings["limitrefetch"] = settings["limit"]
|
||||||
if "user-agent" in settings["header"]:
|
if "user-agent" in settings["header"]:
|
||||||
settings["header"]["user-agent"] = settings["header"]["user-agent"].format(version="1.14") # set the version in the useragent
|
settings["header"]["user-agent"] = settings["header"]["user-agent"].format(version="1.14.0.1") # set the version in the useragent
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logging.critical("No config file could be found. Please make sure settings.json is in the directory.")
|
logging.critical("No config file could be found. Please make sure settings.json is in the directory.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
|
@ -134,6 +134,7 @@ def parse_discussion_post(post, comment_pages):
|
||||||
raise
|
raise
|
||||||
metadata = DiscordMessageMetadata("POST")
|
metadata = DiscordMessageMetadata("POST")
|
||||||
run_hooks(post_hooks, discord_message, metadata, context, post)
|
run_hooks(post_hooks, discord_message, metadata, context, post)
|
||||||
|
discord_message.finish_embed()
|
||||||
send_to_discord(discord_message, metadata)
|
send_to_discord(discord_message, metadata)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue