From d1af44bed4e714799b7dedab7cb2909ec7dffb8b Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 9 Jun 2024 21:13:23 -0400 Subject: added a new lua function, query_db --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 393ea5b..a450612 100644 --- a/README.md +++ b/README.md @@ -550,6 +550,8 @@ There are a few libraries written in go specifically for gopher-lua that are ava An example plugin is provided under `plugins/rss.lua`.
```yaml +period: 3600 +channel: "#rssfeed" rssfeeds: - name: "one" url: "https://www.youtube.com/feeds/videos.xml?channel_id=UCaiL2GDNpLYH6Wokkk1VNcg" @@ -677,6 +679,10 @@ milla.send_gemini_request(prompt) milla.send_chatgpt_request(prompt) ``` +```lua +milla.query_db(query) +``` + 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.
More of milla's functionality will be available through milla's lua module over time.
' -- cgit v1.2.3