all repos — paprika @ 5d2368994a7887c962696739070e16398fc2e8ac

go rewrite of taigabot

5d236899
fix seen... again
Anthony DeDominic adedomin@gmail.com
Tue, 18 Jan 2022 08:33:02 -0500
db1b9b0a
add example systemd service unit file.
Anthony DeDominic adedomin@gmail.com
Tue, 18 Jan 2022 08:08:22 -0500
5d7c1b2e
clean up db use
Anthony DeDominic adedomin@gmail.com
Sun, 16 Jan 2022 10:49:57 -0500
3adf7461
version command
Anthony DeDominic adedomin@gmail.com
Sun, 16 Jan 2022 07:35:19 -0500
2e70eabf
use readwritecloser interface type
Anthony DeDominic adedomin@gmail.com
Sun, 16 Jan 2022 13:13:41 -0500
5e747826
add TLS support
Anthony DeDominic adedomin@gmail.com
Sun, 16 Jan 2022 12:23:17 -0500
1c51f192
Crypto crap and stonks (#19)

* starting point...

* stocks and crypto

* rename to one word
Anthony DeDominic adedomin@gmail.com
Sat, 15 Jan 2022 21:13:28 -0500
4713a97c
add intro command and JOIN handler. (#20)

Anthony DeDominic adedomin@gmail.com
Sat, 15 Jan 2022 21:13:05 -0500
0d44a1ca
add .seen command (#14)

* add .seen command

* Format usage message

* Add last message

Co-authored-by: Anirudh Oppiliappan <x@icyphox.sh>
Anthony DeDominic adedomin@gmail.com
Sun, 02 Jan 2022 02:56:35 -0500
4c9cf50d
Profile plugins (#17)

.selfie, .battlestation, .desktop and .homescreen. Also includes a tiny
change in main.go to write prettyfied errors back to the IRC channel.
Anirudh Oppiliappan x@icyphox.sh
Sun, 02 Jan 2022 13:25:36 +0530
d3726eab
WolframAlpha plugin (#18)

Nothing major here. Unlike Taigabot, however, we're using the Short Answers API which returns a single line of text. Less verbose, but who cares.
Anirudh Oppiliappan x@icyphox.sh
Sat, 01 Jan 2022 17:41:31 +0530
4f5ac048
Meme plugin(s) (#16)

* Initial meme plugin

With some clever "obfuscation".

* Add .kiss/.love

* Add .increase/.decrease

* Some more meme shit

* Hug!
Anirudh Oppiliappan x@icyphox.sh
Thu, 30 Dec 2021 22:19:34 +0530
1fb89ead
Most recent message first
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Dec 2021 21:29:51 +0530
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