Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ecb777b
Created `News` cog
ks129 Apr 19, 2020
9e586ef
Added #python-news channel ID to constants `Channels`
ks129 Apr 20, 2020
b99a767
Added `News` cog loading
ks129 Apr 20, 2020
bb48c5e
Added helper function `News.sync_maillists`
ks129 Apr 20, 2020
b6450b5
Added new dependency `feedparser`
ks129 Apr 20, 2020
ce7efd3
Added #python-news channel webhook to `Webhooks` in constants
ks129 Apr 20, 2020
ab496d4
Created helper function `get_webhook` and added property in `News`
ks129 Apr 20, 2020
e5f3007
Added new category `python_news` to config, that hold mail lists, cha…
ks129 Apr 20, 2020
f9dac72
Applied Python News config changes
ks129 Apr 20, 2020
6abfc32
Applied constant changes to News
ks129 Apr 20, 2020
c8c30f3
Created PEP news task + minor changes in `News`
ks129 Apr 20, 2020
d3a1e34
Added new function `News.get_webhook_names` + new variable `News.webh…
ks129 Apr 20, 2020
c2eac1f
Added new dependency `beatifulsoup4` for Python news HTML parsing
ks129 Apr 20, 2020
8662406
Defined `chardet` log level to warning to avoid spam
ks129 Apr 20, 2020
7348afc
Implemented maillists news posting, created helper functions + added …
ks129 Apr 20, 2020
47fc4db
`News` Cog improvisations
ks129 Apr 21, 2020
cb3b2de
Simplified title check even more in PEP news
ks129 Apr 21, 2020
547de1a
Improved `News` cog
ks129 Apr 27, 2020
07808f8
Fixed `BeautifulSoup` parsing warning
ks129 Apr 27, 2020
6ba5999
Add Python News channel and webhook ID to config-default.yml
ks129 Apr 27, 2020
12a7dc2
Make some fixes to ensure data is persisted and the bot does not hang
jb3 Apr 27, 2020
485acc6
Merge master
jb3 Apr 27, 2020
2cc1d3f
Minor terminology change on a log
jb3 Apr 27, 2020
d49516c
Simplified New publishing check + removed unnecessary Webhook check
ks129 Apr 28, 2020
d498dd6
Replace message ID storage to new specific ID storage in `News` cog
ks129 May 1, 2020
28fb3b8
Added on cog unload news posting tasks canceling on `News` cog
ks129 May 1, 2020
5e55a34
Added ignoring maillist when no recent threads (this month) in `News`…
ks129 May 1, 2020
8647fd8
Merge the two asynchronous tasks into one to prevent race conditions
jb3 May 1, 2020
79b6b15
Define encoding in `News` cog `await resp.text()` using
ks129 May 2, 2020
3a446f4
Fix `News` cog maillist news posting no threads check comment
ks129 May 3, 2020
2368ab4
Fix config Webhook IDs formatting
ks129 May 6, 2020
bcb360b
Renamed `news.py` to `python_news.py` and `News` to `PythonNews` to a…
ks129 May 6, 2020
442d719
Remove `PythonNews.channel` because this is unnecessary
ks129 May 6, 2020
2727231
Merge remote-tracking branch 'origin/python-news' into python-news
ks129 May 6, 2020
5d0cecf
Update Python News extension name in __main__.py
ks129 May 7, 2020
196c5ca
Merge branch 'master' into python-news
SebastiaanZ May 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ sentry-sdk = "~=0.14"
coloredlogs = "~=14.0"
colorama = {version = "~=0.4.3",sys_platform = "== 'win32'"}
statsd = "~=3.3"
feedparser = "~=5.2"
beautifulsoup4 = "~=4.9"

[dev-packages]
coverage = "~=5.0"
Expand Down
110 changes: 60 additions & 50 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def monkeypatch_trace(self: logging.Logger, msg: str, *args, **kwargs) -> None:

logging.getLogger("discord").setLevel(logging.WARNING)
logging.getLogger("websockets").setLevel(logging.WARNING)
logging.getLogger("chardet").setLevel(logging.WARNING)
logging.getLogger(__name__)


Expand Down
1 change: 1 addition & 0 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
bot.load_extension("bot.cogs.information")
bot.load_extension("bot.cogs.jams")
bot.load_extension("bot.cogs.moderation")
bot.load_extension("bot.cogs.python_news")
bot.load_extension("bot.cogs.off_topic_names")
bot.load_extension("bot.cogs.reddit")
bot.load_extension("bot.cogs.reminders")
Expand Down
Loading