from nanobot.channels.plugin import ChannelPlugin from nanobot.channels.contracts import ChannelFieldSpec, ChannelSetupSpec PLUGIN = ChannelPlugin( name="premsir_notify", display_name="Premsir Notifications", runtime=f"{__package__}.runtime:PremsirNotifyChannel", dependencies=(), setup=ChannelSetupSpec(fields={ "port": ChannelFieldSpec(kind="int", default=8787), "targetChannel": ChannelFieldSpec(kind="string", default=""), "targetChatId": ChannelFieldSpec(kind="string", default=""), "secretEnv": ChannelFieldSpec(kind="string", default="PREMSIR_NOTIFICATION_SECRET"), "state": ChannelFieldSpec(kind="string", default="~/.nanobot/premsir-notifications.sqlite3"), }), )