Skip to content

Conversation

@williamhorning
Copy link
Owner

@williamhorning williamhorning commented Nov 16, 2024

Lightning 0.8.0

changelog

  • improved error handling
    • plugins implement better error handling in most places
    • user-facing error messages can now differ from internal error messages
    • adds the LightningError class, which is now thrown by log_error
    • briding of messages handles errors better
    • LIGHTNING_ERROR_HOOK env variable renamed LIGHTNING_ERROR_WEBHOOK
    • plugins now have improved permission checks
  • support for multiple databases added
    • supports Postgres and Redis
    • implements migration from 0.7.3 -> 0.8.0 for Redis
    • supports migration between databases
    • adds bridge_data abstract class to handle database support
  • plugin interface changed
    • duplicate events are now handled better
    • the process_result type was removed
    • the process_message method was split based on event type
    • the create_bridge method was renamed to setup_channel
    • attachment size is now measured in MiB
    • plugins now implement the allow_everyone bridge setting
    • create_command event now has create_command type
  • command handling improved
    • argument handling no longer requires --name
    • commands can access the lightning instance
    • Discord plugin implements improved slash commands
  • logs improved
    • error logs now have a prefix
    • logs from plugins now begin with the plugin name
    • plugins now log information upon login
    • Telegram plugin now logs file proxy URL
  • use_rawname setting reimplemented
  • documentation redone
  • dependencies updated

related

@williamhorning williamhorning changed the title 0.8.0 develop Lightning 0.8.0 Dec 25, 2024
@williamhorning williamhorning marked this pull request as ready for review March 12, 2025 02:49
@williamhorning williamhorning added this to the 0.8.0 milestone Apr 5, 2025
@williamhorning williamhorning requested a review from Copilot April 7, 2025 03:14

This comment was marked as off-topic.

@williamhorning
Copy link
Owner Author

aaa, didn't mean to do that

core:
- add log handler for stdlib log
- add spoiler for bridge id
- bump version to 0.8.0-alpha.9
- ensure messages aren't modified by the non-sender plugin
- fix command argument missing responses
- fix subcommand handling
- try to better handle message duplication?

discord:
- handle forwarded messages

guilded:
- automatically reconnect if disconnected
- clean up api types

revolt
- don't check for channel permissions on every command
- ensure masquerade username and avatar_url aren't too long

telegram
- use external package for telegram markdown handling
cli:
- correctly handle plugin registration errors
- handle config in cli
- split migration and run commands

internal/bridge:
- correct duplicate message check
- move bridge stuff to own package

lightning:
- change SetupCommands interface to provide plugins a map
- clean up stdlib log handling
- rename ReadWriteDisabled to ChannelDisabled
- remove dependency on bridge code
- return error when a plugin name is already taken instead of panicking
- update readme content
- bridge: no database calls in channels loop
- bridge: introduce new hasMessage db call
- bridge: use goroutines for speed
- cli: setup commands after bridge
- revolt: check icon_url length in embed
- telegram: fix not modified ignore logic
- telegram: log reply options on error
bridge:
- fix replies and edit handling
- remove hasMessage method

cli:
- move to cobra

core:
- add cache interface
- increase the channel size

discord:
- ignore messages sent via bot webhooks
- remove unnecessary json tags

guilded:
- clean up api types
- ignore messages sent via bot webhooks

revolt:
- ignore messages from self sent w/masquerade
- split up attachments if over 5 (fix #88)

telegram:
- don't set start command if help doesn't exist yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pings not silenced on Discord

1 participant