Factoid module #6

Open
opened 5 years ago by danthebeastman · 0 comments

it would be great if combot would store per-channel factoids, so that when a user runs .learn foo = bar, calling !foo would trigger the bot to respond with bar

tennu has great syntax for this:

  • .learn foo = bar is described above
  • .learn foo != bar is an action, it would respond /me bar
  • .learn bar @= foo is an alias, you can call foo or bar and get the same response
  • .learn foo ~= s/bar/baz/ lets you perform regex on an existing factoid
  • .learn foo += baz appends to an existing factoid, basically sugar for .learn foo ~= s/$/ baz/

tennu also provides .forget to remove a factoid, and .lock and .unlock to prevent users from editing factoids

bonus: a JSON API to query to get a list of a channel's factoids

it would be great if combot would store per-channel factoids, so that when a user runs `.learn foo = bar`, calling `!foo` would trigger the bot to respond with `bar` [tennu](https://tennu.github.io/plugins/factoids) has great syntax for this: * `.learn foo = bar` is described above * `.learn foo != bar` is an action, it would respond `/me bar` * `.learn bar @= foo` is an alias, you can call `foo` or `bar` and get the same response * `.learn foo ~= s/bar/baz/` lets you perform regex on an existing factoid * `.learn foo += baz` appends to an existing factoid, basically sugar for `.learn foo ~= s/$/ baz/` tennu also provides `.forget` to remove a factoid, and `.lock` and `.unlock` to prevent users from editing factoids bonus: a JSON API to query to get a list of a channel's factoids
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.