Skip to content

Commit 16f05d4

Browse files
committed
Alias πŸ‘Ž to archiving an article (closes #3)
Release as v0.2.4.
1 parent c43a34c commit 16f05d4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v0.2.4 (2022-02-27)
4+
5+
* Alias πŸ‘Ž to archiving an article (closes #3)
6+
37
## v0.2.3 (2022-02-27)
48

59
* Add possibility to get another article by reacting with πŸ‘ or βž•.

β€Žmaubot.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ maubot: 0.1.2
55
id: me.jasonrobinson.pocket
66

77
# A PEP 440 compliant version string.
8-
version: 0.2.3
8+
version: 0.2.4
99

1010
# The SPDX license identifier for the plugin. https://spdx.org/licenses/
1111
# Optional, assumes all rights reserved if omitted.

β€Žpocket/bot.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ async def another(self, event: ReactionEvent, _: Tuple[str]) -> None:
5858
@staticmethod
5959
def format_article_message(article):
6060
return f"{article['resolved_title']} - {article['resolved_url']} " \
61-
f"(βœ… to archive, [view in Pocket](https://getpocket.com/read/{article['item_id']}), πŸ‘/βž• for another)"
61+
f"(βœ…/πŸ‘Ž to archive, [view in Pocket](https://getpocket.com/read/{article['item_id']}), πŸ‘/βž• for another)"
6262

6363
@command.passive(
6464
event_type=EventType.REACTION,
6565
field=lambda e: e.content.relates_to.key,
6666
msgtypes=[],
67-
regex=r"\U00002705|\U00002611|\U00002714",
67+
regex=r"\U00002705|\U00002611|\U00002714|\U0001F44E",
6868
)
6969
async def archive(self, event: ReactionEvent, _: Tuple[str]) -> None:
7070
item_event = self.db.get_user_event(event.sender, event.content.relates_to.event_id)

0 commit comments

Comments
Β (0)