Skip to content

Commit eb841f3

Browse files
fixed a bug where we would still get previously seen feeds, updated the readme
1 parent dec4c4f commit eb841f3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ ircProxy = "socks5://127.0.0.1:9050"
347347
llmProxy = "http://127.0.0.1:8180"
348348
skipTLSVerify = false
349349
useTLS = true
350-
plugins = ["/plugins/plugin1.lua", "/plugins/plugin2.lua"]
351350
adminOnly = false
352-
plugins = ["/plugins/ip.lua", "/plugins/urban.lua", "/plugins/remind.lua"]
351+
plugins = ["/plugins/ip.lua", "/plugins/urban.lua"]
353352
[ircd.devinet.watchlist.security]
354353
watchList = ["#securityfeeds"]
355354
watchFiles = ["/watchfiles/voidbox.list"]
@@ -738,6 +737,11 @@ rss_feed()
738737
```
739738

740739
The example rss plugin, accepts a yaml file as input, reeds the provided rss feeds once, extracts the title, author name and link to the resource, sends the feed over to the `#rssfeed` irc channel and exits.<br/>
740+
Also please note that this is just an example script. If you want milla to handle some rss feeds for you, you can use the builtin rss functionality.<br/>
741+
742+
### Milla's Lua Module
743+
744+
Here's a list of the available function in milla's lua module:
741745

742746
```lua
743747
milla.send_message(msg, target)
@@ -872,6 +876,7 @@ Milla would not exist without the following projects:
872876
- [pgx](https://github.com/jackc/pgx)
873877
- [ollama](https://github.com/ollama/ollama)
874878
- [toml](https://github.com/BurntSushi/toml)
879+
- [gofeed](https://github.com/mmcdole/gofeed)
875880

876881
## Similar Projects
877882

rss.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func GetFeed(feed FeedConfig,
5656
slices.SortFunc(parsedFeed.Items, sortFunc)
5757

5858
for _, item := range parsedFeed.Items {
59-
if item.PublishedParsed.Unix() >= newestFromDB {
59+
if item.PublishedParsed.Unix() > newestFromDB {
6060
client.Cmd.Message(channel, parsedFeed.Title+": "+item.Title)
6161
}
6262
}

0 commit comments

Comments
 (0)