mirror of
https://github.com/bradganley/bsky-user-activity-bot.git
synced 2025-02-14 12:06:27 +00:00
Added name in post behavior, fixed an aaron I missed before
This commit is contained in:
parent
873150ddae
commit
a9c38cc141
@ -33,7 +33,7 @@ let handlers = {
|
|||||||
CreateSkeetAction.make(
|
CreateSkeetAction.make(
|
||||||
(handler: HandlerAgent, commit: JetstreamEventCommit): string => {
|
(handler: HandlerAgent, commit: JetstreamEventCommit): string => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let text = "\"" + commit.commit.record?.text + "\"";
|
let text = <string>Bun.env.NAME + " posted \"" + commit.commit.record?.text + "\"";
|
||||||
if(text.length > 300){
|
if(text.length > 300){
|
||||||
text = text.substring(1, 301)
|
text = text.substring(1, 301)
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ let handlers = {
|
|||||||
[
|
[
|
||||||
CreateSkeetAction.make((handler: HandlerAgent, event: JetstreamEventCommit): string => {
|
CreateSkeetAction.make((handler: HandlerAgent, event: JetstreamEventCommit): string => {
|
||||||
const blockedDid = event.commit.record.subject
|
const blockedDid = event.commit.record.subject
|
||||||
return "Aaron blocked a user: " + blockedDid;
|
return <string>Bun.env.NAME + " blocked a user: " + blockedDid;
|
||||||
}, undefined, undefined),
|
}, undefined, undefined),
|
||||||
LogInputTextAction.make("Block"),
|
LogInputTextAction.make("Block"),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user