Skip to content

Commit

Permalink
Version 0.0.4 (#8)
Browse files Browse the repository at this point in the history
* Bump version to 0.0.4.

* Update LICENSE year.

* Update dependencies.

* Add missing message in application logs.

* Reduce docker image size by using slim image.

* Bump version.
  • Loading branch information
dbrennand authored Mar 24, 2021
1 parent 6c87945 commit 8644a5b
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 174 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9
FROM python:3.9-slim

# Set working directory
WORKDIR /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 dbrennand
Copyright (c) 2021 dbrennand

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
263 changes: 97 additions & 166 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Checks on an interval for RSS feed updates.
> [!NOTE]
> Run the following commands from inside the project directory.
1. `docker build -t rss_feederbot .`
1. `docker build -t rss_feederbot:0.0.4 .`

2. `docker run --rm --name rss_feederbot -e BOT_TOKEN="Insert bot token here." -d -t rss_feederbot`
2. `docker run --rm --name rss_feederbot -e BOT_TOKEN="Insert bot token here." -d -t rss_feederbot:0.0.4`

## Usage

Expand Down
8 changes: 4 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def show_feeds(self, update: Update, context: CallbackContext) -> None:
with closing(make_reader("db.sqlite")) as reader:
# Obtain RSS feed(s) currently being checked for updates
feeds = list(reader.get_feeds(sort="added"))
update.message.reply_text(
f"The following RSS feed(s) are being checked for updates: {[feed.url for feed in feeds]}."
)
message = f"The following RSS feed(s) are being checked for updates: {[feed.url for feed in feeds]}."
logger.debug(message)
update.message.reply_text(message)

def change_interval(self, update: Update, context: CallbackContext) -> None:
"""
Expand Down Expand Up @@ -248,6 +248,6 @@ def start_bot(self) -> None:


if __name__ == "__main__":
__version__ = "0.0.3"
__version__ = "0.0.4"
rss_feederbot = RSS_Feederbot()
rss_feederbot.start_bot()
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 8644a5b

Please sign in to comment.