juni-b-queer / bsky-event-handlers

Typescript based framework for building Bluesky bots. Designed to be easily extendable, this bot framework can be used to make almost any bot you could want.
20 stars 0 forks source link

Create standardized Abstract Action, Validator, and Handler #59

Open juni-b-queer opened 4 months ago

juni-b-queer commented 4 months ago

The base Abstract class for all actions should be AbstractAction, AbstractMessageAction will extend AbstractAction

The base Abstract class for all validators should be AbstractValidator, AbstractMessageValidator will extend AbstractValidator

The base Abstract class for all handlers should be AbstractHandler, AbstractMessageHandler will extend AbstractHandler

This will then allow us to make Generic actions, validators, and handlers that don't rely on a message.

We can also make actions, validators, and handlers for each subscription type AbstractInterval{Action|Validator|Handler} while still maintaining the Abstract structure.

Abstract{Validator|Action|Handler}.handle should only accept a HandlerAgent

High level Todos

juni-b-queer commented 2 months ago

:tada: This issue has been resolved in version 2.0.0-beta.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: