From d83164862d549c9fe3520d3efbeffe97a9d78efe Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 24 Apr 2024 09:48:53 +0900 Subject: [PATCH] fix --- .gitignore | 39 +++------------------------ content/blog/2024-04-12-bluesky.md | 39 ++++++++++++++++++++------- content/m/genshin/index.md | 4 +-- content/syui-1.md | 4 --- layouts/_default/single.html | 4 +-- layouts/partials/content-about-1.html | 12 --------- layouts/partials/content-about.html | 25 ----------------- layouts/sitemap/single.html | 5 ++-- layouts/syui-1/single.html | 10 ------- static/css/style.css | 32 +++++++++++++--------- 10 files changed, 58 insertions(+), 116 deletions(-) delete mode 100644 content/syui-1.md delete mode 100644 layouts/partials/content-about-1.html delete mode 100644 layouts/syui-1/single.html diff --git a/.gitignore b/.gitignore index 55b6c0a..b827e18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,47 +1,14 @@ public -static/img/.DS_Store -static/.DS_Store resources -.DS_Store -*/.DS_Store -*/*/.DS_Store -*/*/*/.DS_Store -*/*/*/*/.DS_Store -*/*/*/*/*/.DS_Store -gh-pages.pub -gh-pages +*.DS_Store +**.DS_Store node_modules -public-vue resources yarn.lock -nyan-cat -particles.js .env dist -search/dist -search/node_modules -search/yarn-error.log -search/yarn.lock -src-imgauto/dist -src-imgauto/node_modules -src-imgauto/yarn-error.log -src-imgauto/yarn.lock -src-pogo/node_modules -src-pogo/yarn.lock -src-pogo/yarn-error.log -src-manga* -src-pogo/dist -src-bsky/dist -src-bsky/node_modules -src-bsky/*.lock -src-*/node_modules -src-*/dist -src-*/yarn-error.log -src-*/yarn.lock -src-*/public src-* -src-** -**hugo_build.lock +*.lock */*node_* **node_module* **.zsh diff --git a/content/blog/2024-04-12-bluesky.md b/content/blog/2024-04-12-bluesky.md index 6a79841..fd575aa 100644 --- a/content/blog/2024-04-12-bluesky.md +++ b/content/blog/2024-04-12-bluesky.md @@ -7,10 +7,7 @@ slug = "bluesky" blueskyでfeed serverを立て、slash command(cmd slash)を有効にしました。 -- https://api.slack.com/interactivity/slash-commands -- https://docs.github.com/issues/tracking-your-work-with-issues/about-slash-commands - -これによって何ができるのかというと、例えば、`/help`と投稿すると、botが反応できるようになります。 +- https://github.com/bluesky-social/feed-generator ```sh /help @@ -20,6 +17,13 @@ or @yui.syui.ai /help ``` +> スラッシュ コマンドを使用すると、テーブル、タスクリスト、コード ブロックなど、より複雑な Markdown を簡単に入力できます。 + +- https://api.slack.com/interactivity/slash-commands +- https://docs.github.com/issues/tracking-your-work-with-issues/about-slash-commands + +これによって何ができるのかというと、例えば、`/help`と投稿すると、botが反応できるようになります。 + 今までのbotは大体が(1)mention, replyで反応するか、(2)feed(following)から反応するか、(3)global timelineから反応するかの方法があり、それぞれに欠点がありました。 - 1. mention, reply : 最も合理的で負荷が少なくlimitに引っかかる可能性は少なく確実な方法。ただ、ユーザーからすると面倒 @@ -60,6 +64,27 @@ FEEDGEN_PUBLISHER_DID=did:plc:4hqjfn7m6n5hno3doamuhgef FEEDGEN_SUBSCRIPTION_ENDPOINT="wss://bsky.network" ``` +```ts:scripts/publishFeedGen.ts +const handle = '' +const password = '' +const recordName = '' +const displayName = '' +const description = '' +const avatar: string = 'icon/ai.png' +``` + +```sh +./feed-generator +├── icon/ai.png +├── .env +└── src +``` + +```sh +# bsky.networkにpush +$ npm run publishFeed +``` + ```ts:src/subscription.ts .filter((create) => { return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai'); @@ -72,12 +97,6 @@ $ docker compose build feed-generator $ docker compose up feed-generator ``` -```sh -# scripts/publishFeedGen.ts -# bsky.networkにpush -npm run publishFeed -``` - これを`bot`で取得すると、返信できます。 > feed = at://did:plc:4hqjfn7m6n5hno3doamuhgef/app.bsky.feed.generator/cmd diff --git a/content/m/genshin/index.md b/content/m/genshin/index.md index 2a3f6f0..49bd770 100644 --- a/content/m/genshin/index.md +++ b/content/m/genshin/index.md @@ -1,8 +1,8 @@ +++ date = "2021-12-25" -lastmod = "2022-12-01" +lastmod = "2023-12-01" tags = ["genshin","game"] -title = "原神" +title = "genshin" slug = "genshin" aliases = "/m/post/genshin" header_image = "/games/genshin.jpg" diff --git a/content/syui-1.md b/content/syui-1.md deleted file mode 100644 index 36d21ef..0000000 --- a/content/syui-1.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "about | syui.ai" -type: syui-1 ---- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b9ad8a7..fe2211a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@
{{ if ne .Lastmod .Date }}
update : {{ .Lastmod.Format "2006-01-02" }}
{{ end }} -
{{ .Date.Local.Format "2006-01-02" }} / {{ .Site.Author.name }} +
{{ .Date.Local.Format "2006-01-02" }} / @{{ .Site.Author.name }} {{ $taxo := "tags" }} {{ with .Param $taxo }} @@ -41,9 +41,9 @@

{{ .Title }}

{{ .Content }} - {{ partial "prev_next_post.html" . }}