Commit Graph

45 Commits (3a5a38496df1e0919ef74cf345ec87b64e1be3ac)

Author SHA1 Message Date
mio 3a5a38496d (gordon) Temporarily fix parsing 2022-08-30 01:11:50 +00:00
mio 9b1631d658 Add example bot gordon 2022-08-29 23:13:52 +00:00
mio edae077b1d (ramenkan) Add link 2022-08-29 20:47:53 +00:00
mio 8e84095be6 Change the behaviour of service code detection
- Parse service codes if they are sent as `!code` or `nick: !code` in channels
  and private messages (where `!code` is an example code prefix and service
  code, and `nick` is the bot's nick). If the service code is not provided at
  the start of the message body, it will be treated as a message without a
  service code and passed to the target handler.

- If a target handler is defined, both messages in the form `nick: message`
  in a channel and `message` in a private message will be sent to the handler.
  The `nick:` at the start of `nick: message` will no longer be filtered out.

  The default name of the target handler is `target`, as in
  `itte_handlers.target(cxt, msg)`. This can be changed in the config by
  setting a new `itte_config.target_handler` value.
2022-04-28 23:16:30 -04:00
mio 562f112995 Add preliminary support for "nick: message" detection 2022-04-28 02:40:57 -04:00
mio 44e56e0884 (hellobot) Minor adjustment for scheduled task 2022-04-27 23:27:56 -04:00
mio 20652e5e31 Add function to get a list of users in a channel 2022-04-27 23:20:09 -04:00
mio f5302105f0 Remove unused variables 2022-04-27 22:05:51 -04:00
mio 202aa6e140 Add dev rockspec by Will Sinatra 2022-04-26 11:59:29 -04:00
mio dbec0eef8c Include rockspecs for older versions by Will Sinatra 2022-04-26 09:16:28 -04:00
mio 6de32954b4 Bump release version to 1.2
- Bump rockspecs to 1.2
- (hellobot) Add explanation for scheduled tasks
2022-04-25 17:35:14 -04:00
mio a4a6b35d3e Add rockspec by Will Sinatra 2022-04-25 17:01:19 -04:00
mio de2643183f Fix task repetition
- Fix task scheduling not repeating and resulting in high cpu usage
- Fix pong response triggered by user message
- Add timestamp to debug output
2022-04-09 01:28:59 -04:00
mio 971b758524 Try to handle pings better
- Send a pong anyway if no ping request was detected after 120s
- (ramenkan) minor text adjustments
2022-04-04 00:31:52 -04:00
mio e9927fb1d7 Add scheduled tasks 2022-04-01 04:14:15 -04:00
mio 8530a3bb77 (hachi) Add breadtarot foil 2022-03-23 16:55:09 +00:00
mio d31e322b10 Add tracery-inspired example 2022-03-22 06:10:42 +00:00
mio 4edbf32ef9 Add docs
- Add more-detailed usage doc
- Add a smaller hello world example
- Include a user systemd file
- Fix config check to include second-level nested tables
2022-03-21 04:09:12 +00:00
mio 75d3f149f2 Add handlers to list servers/channels, connect to/quit servers
- Add handlers to list connected servers and channels
- Add handlers to connect and disconnect from servers
- Check user config and only override specified settings
- Redact parameters in admin-only handlers from debug output to avoid
  logging potential passwords
- Set admin-only handlers to respond only in private messages
- Include list of admin handlers for customisation
- Extract debug strings to a table for customisation
2022-03-20 03:42:25 +00:00
mio 7963d7221c Bugfixes
- Add global admins table, set disconnect and reload built-in handlers to be
  accessible by global admins only
- Only send an unknown code error in private messages to avoid responding to
  other bots' codes when there is a prefix collision
- Fix server contexts not being updated after a config reload
- Fix service codes being improperly parsed in privmsgs when different code
  prefixes are used
- Fix joining channels on some networks when connecting without
  authentication
- Fix disconnecting from one server also causing disconnection from other
  servers
2022-03-19 17:33:07 +00:00
mio 9005c0fba5 Rewrite module in Lua 2022-03-14 06:57:49 +00:00
mio 8d262f2fb1 Add cli flag for specifying config file
- Add cli flag for specifying config file
  (This allows running multiple running instances)
- Fix channel joins by waiting for server reply (thanks benharri)
- Remove toot commands from help message (unannounced feature)
- Update readme
2020-10-25 22:28:31 +00:00
mio 16be6d9dda Update username parsing
- Update username parsing
- [ramenkan] Include one meat definitively in !ramen output
- [ramenkan] Add tsukemen and other data
2020-10-23 23:17:03 +00:00
mio 188c96a62c Add ramenkan data 2020-10-23 19:28:34 +00:00
mio ead6eeeb24 Minor text edit 2019-04-01 18:12:46 +00:00
mio cdc722510b Update readme 2019-01-15 17:26:21 +00:00
mio 50fb3dc5d7 Remove unused lib 2018-10-15 05:15:31 +00:00
mio cb5d49ff5a Check for ping timeout and exit 2018-10-13 17:18:47 +00:00
mio 143e5b91af Simpler keepalive response (thanks desvox), change license to BSD 2018-10-13 15:07:59 +00:00
mio 1f49b05e10 Remove sleep 2018-10-10 20:33:06 +00:00
mio edeff5469d Add toot error handling 2018-10-10 16:48:05 +00:00
mio a09f7b1d7e Fix pong response 2018-10-05 15:31:06 +00:00
mio 6984c4a8df Add veggie ramen toot variant 2018-09-17 23:23:34 +00:00
mio 884261c783 Add posting to mastodon 2018-09-17 23:17:00 +00:00
mio 1ebf436ba9 Add show photo link handler 2018-09-17 16:27:05 +00:00
mio d5f882303e Add README 2018-09-17 05:42:14 +00:00
mio 0c3ba15173 Add veggie ramen handler, move other handler text to yml 2018-09-17 05:22:18 +00:00
mio 542976eb9d Add ramen handler 2018-09-17 03:51:09 +00:00
mio 5f8f89988b Rearrange files, add links 2018-09-16 04:48:50 +00:00
mio f0103c73db Convert config.py to yml 2018-09-15 23:18:44 +00:00
mio 45029d9525 Add listener object 2018-09-14 23:37:47 +00:00
mio 3914db4685 Move sample run routine 2018-09-14 05:54:21 +00:00
mio 797ed660dd Change class instantiation, add a bit of error handling 2018-09-13 20:12:18 +00:00
mio 02aff49ea0 Convoluted but works, needs better abstraction 2018-09-13 06:10:50 +00:00
mio cef65b6a94 Starter demo 2018-09-12 20:01:24 +00:00