all repos — paprika @ e4901c29247df262a725e344dcd03079c2923f5e

go rewrite of taigabot

e4901c29
Use message hash in key
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Dec 2021 21:29:18 +0530
56b0b38f
Refactor to use strings.Builder
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Dec 2021 17:47:50 +0530
de9cbf94
Lowercase nick while scanning prefixes
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 22:37:51 +0530
601d47dc
Fix messages not sending as NOTICEs
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 21:02:56 +0530
1eda2116
Fix tell recepient, wrap errs
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 19:48:35 +0530
5ca463bc
Initial implementation of tells

But it no worky.
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 17:27:28 +0530
e793cf57
Trim leading and trailing spaces in message
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 21:24:11 +0530
eb2f2264
More gofmt
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 10:59:57 +0530
e568d23f
Unify usage text, gofmt
Anirudh Oppiliappan x@icyphox.sh
Sun, 26 Dec 2021 22:21:10 +0530
6db4885e
Helper program to create a new plugin
Anirudh Oppiliappan x@icyphox.sh
Sun, 19 Dec 2021 19:47:44 +0530
66003ebe
initial youtube metadata commit; only link viewing, not search. (#13)

* initial youtube metadata

* use go-humanize

* search and link description done.
Anthony DeDominic adedomin@gmail.com
Thu, 16 Dec 2021 02:45:43 -0500
f69bcabe
initial draft of quote plugin. (#10)

* initial draft of quote plugin.

* add random quote fetching.

* better error reporting
Anthony DeDominic adedomin@gmail.com
Sat, 11 Dec 2021 10:35:56 -0500
870bb9b3
Last.fm plugin (#12)

* Init Last.fm plugin

* Fix Unix timestamp parsing

* go mod tidy
Anirudh Oppiliappan x@icyphox.sh
Sat, 11 Dec 2021 21:05:18 +0530
0100b131
fix config parsing.
Anthony DeDominic adedomin@gmail.com
Sat, 11 Dec 2021 07:14:21 -0500
05d2847a
add decide plugin with dice, Y/N questions and selecting multiple or … (#11)

* add decide plugin with dice, Y/N questions and selecting multiple or separated propositions.

* remove .decide trigger from decide parse.

* add .roll trigger word
Anthony DeDominic adedomin@gmail.com
Sun, 28 Nov 2021 22:05:30 -0500
df959ffa
fix bad merge for weather.
Anthony DeDominic adedomin@gmail.com
Mon, 22 Nov 2021 09:43:27 -0500
2f3b2bfb
Merge remote-tracking branch 'origin/time'
Anthony DeDominic adedomin@gmail.com
Mon, 22 Nov 2021 09:41:39 -0500
4fb07534
Removed convoluted flags.

It's easier to special case and stick to one-size-fits-all errors.

Errors:

  * NoReply  - Same as before.
  * IsRaw    - The plugin sent a line or lines of raw IRC commands.
  * IsNotice - The plugin is sending a NOTICE, not a PRIVMSG.
Anthony DeDominic adedomin@gmail.com
Mon, 22 Nov 2021 09:19:44 -0500
25de5b6c
Contextual Errors

This set of changes removes all the old CTCP code in favor of contextual
errors. The problem is, it also exposes a large amount of defects in
current prefix matching approaches that we need to discuss fix.

Error Types:

  * NoReply - DO NOT REPLY; continue matching prefixes.
  * ReplyT  - A set of flags that allow customizing how to send a reply.
Anthony DeDominic adedomin@gmail.com
Sun, 21 Nov 2021 19:34:12 -0500
3a6f4cb1
use yaml instead :(
Anthony DeDominic adedomin@gmail.com
Sun, 21 Nov 2021 17:41:51 -0500
6056e2af
Add configuration handling and parsing.

  * Configuration initialization: `paprika init [ -c xyz ]`
  * Default directory path for DB and plugin state.
  * Usage / Help text.
Anthony DeDominic adedomin@gmail.com
Sat, 20 Nov 2021 07:16:16 -0500
4c12596c
Basic CTCP handling (#5)

* Implemented basic CTCP recognition and handling

* implemented additional CTCP-related calls, implemented CTCP ping

Co-authored-by: nojusr @office <nojus.raskevicius@teltonika.lt>
Nojus nojusr@gmail.com
Sun, 21 Nov 2021 17:41:22 +0200
30551520
Basic Link Handling (#4)

* implemented foundational link handling and parsing

* Various formatting fixes, removed NOTE:(nojusr) from comments

Co-authored-by: nojusr @office <nojus.raskevicius@teltonika.lt>
Nojus nojusr@gmail.com
Sun, 21 Nov 2021 17:41:08 +0200
b89432ec
Support setting location for user (#7)

* Init location plugin

* Support setting loc and getting loc for @nick
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Nov 2021 08:09:00 +0530
9120dc31
Wrapper funcs for Set-ing and Get-ing from db
Anirudh Oppiliappan x@icyphox.sh
Sat, 20 Nov 2021 19:51:19 +0530
d2840bdc
Rename to paprika
Anirudh Oppiliappan x@icyphox.sh
Fri, 19 Nov 2021 14:15:55 +0530
8ccd2df8
Add weather plugin (#3)

* Add weather plugin

* Clean up struct

* Remove useless shit from weather desc data
Anirudh Oppiliappan x@icyphox.sh
Wed, 17 Nov 2021 22:02:06 +0530
7d0fbe31
Adds search plugin. (#1)

* add search

* Formatting and consistency

Co-authored-by: Anirudh Oppiliappan <x@icyphox.sh>
Anthony DeDominic adedomin@gmail.com
Tue, 16 Nov 2021 00:22:58 -0500
9bfb1a00
Add Listenbrainz plugin (#2)

* Add Listenbrainz plugin

* Add formatting output

* Close r.Body
Anirudh Oppiliappan x@icyphox.sh
Tue, 16 Nov 2021 10:50:54 +0530
1a98ec30
Simple sanity check plugin
Anirudh Oppiliappan x@icyphox.sh
Sun, 14 Nov 2021 14:40:37 +0530
90f2396d
Init taigobot
Anirudh Oppiliappan x@icyphox.sh
Sun, 14 Nov 2021 13:23:49 +0530
e0be121a
Use time.LoadLocation instead
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Nov 2021 17:02:52 +0530
8f52ee8c
Implement time plugin
Anirudh Oppiliappan x@icyphox.sh
Sun, 21 Nov 2021 12:36:27 +0530