From 3930c062114c5b5a8a42cb5cc523b50939a1f621 Mon Sep 17 00:00:00 2001 From: Juni Date: Wed, 11 Dec 2024 19:36:59 -0600 Subject: [PATCH] patch: fix typos and update deps --- templates/default/package.json | 2 +- templates/default/src/index.ts | 5 ++--- templates/interval/package.json | 2 +- templates/jetstream/package.json | 2 +- templates/jetstream/src/index.ts | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/default/package.json b/templates/default/package.json index 6a17cbc..f7b22a9 100644 --- a/templates/default/package.json +++ b/templates/default/package.json @@ -15,7 +15,7 @@ "typescript": "^5.0.0" }, "dependencies": { - "bsky-event-handlers": "^2.0.0", + "bsky-event-handlers": "^2.0.1", "@atproto/api": "^0.13.19" }, "license": "{{license}}" diff --git a/templates/default/src/index.ts b/templates/default/src/index.ts index a81e807..ca76306 100644 --- a/templates/default/src/index.ts +++ b/templates/default/src/index.ts @@ -1,6 +1,5 @@ import { BadBotHandler, - CreateSkeetHandler, DebugLog, GoodBotHandler, HandlerAgent, @@ -31,8 +30,8 @@ let handlers = { post: { c: [ new MessageHandler( - [ReplyingToBotValidator().make(), InputEqualsValidator("Hello").make()], - [LogMessageAction().make(), CreateSkeetAction.make('World!', MessageHandler.generateReplyFromMessage)], + [ReplyingToBotValidator.make(), InputEqualsValidator.make("Hello")], + [LogMessageAction.make(), CreateSkeetAction.make('World!', MessageHandler.generateReplyFromMessage)], testAgent ), new GoodBotHandler(testAgent), diff --git a/templates/interval/package.json b/templates/interval/package.json index 6a17cbc..f7b22a9 100644 --- a/templates/interval/package.json +++ b/templates/interval/package.json @@ -15,7 +15,7 @@ "typescript": "^5.0.0" }, "dependencies": { - "bsky-event-handlers": "^2.0.0", + "bsky-event-handlers": "^2.0.1", "@atproto/api": "^0.13.19" }, "license": "{{license}}" diff --git a/templates/jetstream/package.json b/templates/jetstream/package.json index 6a17cbc..f7b22a9 100644 --- a/templates/jetstream/package.json +++ b/templates/jetstream/package.json @@ -15,7 +15,7 @@ "typescript": "^5.0.0" }, "dependencies": { - "bsky-event-handlers": "^2.0.0", + "bsky-event-handlers": "^2.0.1", "@atproto/api": "^0.13.19" }, "license": "{{license}}" diff --git a/templates/jetstream/src/index.ts b/templates/jetstream/src/index.ts index df77131..832bc86 100644 --- a/templates/jetstream/src/index.ts +++ b/templates/jetstream/src/index.ts @@ -26,8 +26,8 @@ let handlers = { post: { c: [ new MessageHandler( - [ReplyingToBotValidator().make(), InputEqualsValidator("Hello").make()], - [LogMessageAction().make(), CreateSkeetAction.make('World!', MessageHandler.generateReplyFromMessage)], + [ReplyingToBotValidator.make(), InputEqualsValidator.make("Hello")], + [LogMessageAction.make(), CreateSkeetAction.make('World!', MessageHandler.generateReplyFromMessage)], testAgent ), new GoodBotHandler(testAgent),