diff options
| author | Ahmed <git@gumx.cc> | 2026-06-20 15:30:04 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-20 15:30:35 +0300 |
| commit | 218f587a09f721ed494b4e3f491f950686cf6210 (patch) | |
| tree | 566efb71134c6dccb92785afbce74ca479bd5a40 /alfred/helpstrings.py | |
| parent | 815b742006732b1ccdb665ba5c076fbb7b1e79c6 (diff) | |
add: feed command
Diffstat (limited to 'alfred/helpstrings.py')
| -rw-r--r-- | alfred/helpstrings.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/alfred/helpstrings.py b/alfred/helpstrings.py index 15362be..30fc996 100644 --- a/alfred/helpstrings.py +++ b/alfred/helpstrings.py @@ -1,4 +1,4 @@ -TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git, twt. type !help <topic> for details" +TOPICS = "topics: srv, bot, files, irc, coffee, vpn, list, git, twt, feed. type !help <topic> for details" SRV_TOPIC = "srv: uptime disk mem load status net top topmem io conns who logs. type !help srv <cmd> for details" SRV = { @@ -86,6 +86,14 @@ TWF = { "no": "twt yes or no: confirm or cancel a pending delete. usage: !twt yes or !twt no", } +FEED_TOPIC = "feed: refresh add list rm. type !help feed <cmd> for details" +FEED = { + "refresh": "feed refresh: regenerate feed.gumx.cc from all followed feeds. usage: !feed refresh", + "add": "feed add: follow a feed. usage: !feed add <url> [nick]", + "list": "feed list: show all followed feeds. usage: !feed list", + "rm": "feed rm: remove a feed by nick or url. usage: !feed rm <nick>", +} + TOPIC_MAP = { "srv": (SRV_TOPIC, SRV), "bot": (BOT_TOPIC, BOT), @@ -96,9 +104,10 @@ TOPIC_MAP = { "list": (LIST_TOPIC, LIST), "git": (GIT_TOPIC, GIT), "twt": (TWF_TOPIC, TWF), + "feed": (FEED_TOPIC, FEED), } -_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE, **VPN, **LIST, **GIT, **TWF} +_ALL = {**SRV, **BOT, **FILES, **IRC, **COFFEE, **VPN, **LIST, **GIT, **TWF, **FEED} def lookup(args): |
