洪 民憙 (Hong Minhee)'s avatar

洪 民憙 (Hong Minhee)

@[email protected] · 762 following · 848 followers

An intersectionalist, feminist, and socialist guy living in Seoul (UTC+09:00). Who's behind @fedify and @hollo. Write some free software in , , , & . They/them.

()

WebsiteGitHubBlogFedify

https://hongminhee.org/

https://github.com/dahlia

https://writings.hongminhee.org/

https://fedify.dev/

안녕's avatar
안녕

@[email protected]

으악 제발 합타입을 사랑해줘

const someType: number; // 0이면 뭐고 1이면 뭐

이러지 말고

const someType: "뭐뭐" | "솨솨"

이렇게 해줘...

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected] · Reply to Fedify: an ActivityPub server framework's post

:botkit: スタンドアロンのActivityPubボットを作成するためのTypeScriptフレームワーク、BotKitを発表します!

一般的なMastodonボットとは異なり、BotKitで作成したボットは、プラットフォームの制約なく完全に独立して動作するFediverseボットです。シンプルで直感的なAPIにより、TypeScriptファイル1つでボットを作成できます。

現在はDenoのみの対応で、今後Node.jsとBunのサポートも予定しています。堅牢なFedifyをベースに開発されています。

https://botkit.fedify.dev/

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected] · Reply to Fedify: an ActivityPub server framework's post

:botkit: 독립형 ActivityPub 봇을 만들기 위한 TypeScript 프레임워크인 BotKit을 소개합니다!

일반적인 Mastodon 봇과 달리, BotKit으로 만든 봇은 플랫폼의 제약 없이 완전히 독립적으로 동작하는 연합우주(fediverse) 봇입니다. 간단하고 직관적인 API로 TypeScript 파일 하나만으로도 봇을 만들 수 있어요.

현재는 Deno만 지원하지만, Node.js와 Bun 지원도 계획하고 있습니다. 견고한 Fedify 기반으로 제작되었습니다.

https://botkit.fedify.dev/

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

:botkit: Introducing : A framework for creating truly standalone bots!

Unlike traditional Mastodon bots, BotKit lets you build fully independent bots that aren't constrained by platform limits. Create your entire bot in a single TypeScript file using our simple, expressive API.

Currently -only, with Node.js & Bun support planned. Built on the robust foundation.

https://botkit.fedify.dev/

import {
  createBot,
  InProcessMessageQueue,
  MemoryKvStore,
  mention,
  text,
} from "@fedify/botkit";

// Create a bot instance:
const bot = createBot<void>({
  // The bot will have fediverse handle "@greetbot@mydomain":
  username: "greetbot",
  // Set the display name:
  name: "Greet Bot",
  // Set the profile icon (avatar):
  icon: new URL("https://mydomain/icon.png"),
  // Set the bio:
  summary: text`Hi, there! I'm a simple fediverse bot created by ${
    mention("@hongminhee@hollo.social")}.`,
  // Store data in memory (for development):
  kv: new MemoryKvStore(),
  // Use in-process message queue (for development):
  queue: new InProcessMessageQueue(),
});

// A bot can respond to a mention:
bot.onMention = async (session, message) => {
  await message.reply(text`Hi, ${message.actor}!`);
};

// Or, a bot also can actively publish a post:
const session = bot.getSession("https://mydomain/");
setInterval(async () => {
  await session.publish(text`Hi, forks! It's an hourly greeting.`);
}, 1000 * 60 * 60);

export default bot;
import { createBot, InProcessMessageQueue, MemoryKvStore, mention, text, } from "@fedify/botkit"; // Create a bot instance: const bot = createBot<void>({ // The bot will have fediverse handle "@greetbot@mydomain": username: "greetbot", // Set the display name: name: "Greet Bot", // Set the profile icon (avatar): icon: new URL("https://mydomain/icon.png"), // Set the bio: summary: text`Hi, there! I'm a simple fediverse bot created by ${ mention("@[email protected]")}.`, // Store data in memory (for development): kv: new MemoryKvStore(), // Use in-process message queue (for development): queue: new InProcessMessageQueue(), }); // A bot can respond to a mention: bot.onMention = async (session, message) => { await message.reply(text`Hi, ${message.actor}!`); }; // Or, a bot also can actively publish a post: const session = bot.getSession("https://mydomain/"); setInterval(async () => { await session.publish(text`Hi, forks! It's an hourly greeting.`); }, 1000 * 60 * 60); export default bot;
鈴谷's avatar
鈴谷

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

@hongminhee 日本には似た表現はないですね。韓国語はほんのちょっとしか知らないですが、すごく韓国らしい表現に感じます。
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 鈴谷's post

@novik_st 韓国的な表現って…確かにそうみたいですね。🤔

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to ruru@:salmon:'s post

@ruru 韓国でしか使わない表現の様ですね。ありがとうございます。

ruru@:salmon:'s avatar
ruru@:salmon:

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

@[email protected] 聞いたことないですね

Kaori :_mastodon_2022:'s avatar
Kaori :_mastodon_2022:

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

聞いた事はないです

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to Kaori :_mastodon_2022:'s post

@kaorit なるほど。韓国でしか使わない表現なんですね。ありがとうございます!

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

韓国では恋愛を「青春事業」と表現する事も有りますが、日本でも同じ様な表現を使いますか?

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

Just deployed the website for the BotKit docs.

https://botkit.fedify.dev/

The landing page of the BotKit docs website
The landing page of the BotKit docs website
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to Julian Fietkau's post

@julian Feel free to share!

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

Just deployed the website for the BotKit docs.

https://botkit.fedify.dev/

The landing page of the BotKit docs website
The landing page of the BotKit docs website
Fediverse Linux Users Group's avatar
Fediverse Linux Users Group

@[email protected]

もくもく会のお知らせ
今月は奇数月なので、年始はもくもく会を開催します!お気軽にご参加ください〜!皆さんでもくもく作業しましょう!
---
日時 : 1月22日(水)19:30〜
会場 : MattermostCall
申し込み :
https://fedilug.connpass.com/event/342127/

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

妻が糠漬けを作っている。

妻が作っている糠漬け
妻が作っている糠漬け
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to Luminα's post

@campanula 네, 일본 다녀올 때마다 사서 오는데 뭐 걸리는 건 없더라고요!

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

福岡で買った桜葉餅と葩餅をソウルで食べている。

桜葉餅と葩餅
桜葉餅と葩餅
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

서울 到着(도착)! 疲困(피곤)하다…

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to Lionhairdino's post

@lionhairdino 감사합니다!

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

ファミリーレストランで簡単にブランチを食べて、福岡国際空港に行っている。

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

今度の福岡旅行が終わりつつある…

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

今日の夕飯はまた鯛茶漬け!けど、一昨日とは違うお店の「魚忠」。

鯛茶漬け
鯛茶漬け
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

ASAKO IWAYANAGI FUKUOKAに来た。私が選んだメニューはパルフェバンビ フリュイ セゾン ポム。

メニューはパルフェバンビ フリュイ セゾン ポム
メニューはパルフェバンビ フリュイ セゾン ポム
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

Okay, I finished the groundwork of today. It's -only yet though. It's on GitHub!

Even though it's built on , its API looks completely different from Fedify's one. I intended to make it resembles more Discord/Telegram bot frameworks than Fedify. I think it's close to my intention.

https://github.com/dahlia/botkit

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

天神に有る福岡赤煉瓦文化館のEngineer Cafeに来た。素敵なスペース!

「福岡赤煉瓦文化館」と書かれている
「福岡赤煉瓦文化館」と書かれている
Engineer Cafeの入口
Engineer Cafeの入口
Engineer Cafeの立て看板
Engineer Cafeの立て看板
Emelia 👸🏻's avatar
Emelia 👸🏻

@[email protected]

Wow, what an issue discussion: github.com/whatwg/html/issues/

(Was actually recently tripped up by form methods after forgetting about form method spoofing)

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

お店は「うどん平」。

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

今日は寒くてお昼ご飯は饂飩!

饂飩
饂飩
洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected] · Reply to kodingwarrior :vim:'s post

@kodingwarrior Phanpy는 자체적으로 코드블록 같은 걸 특수 처리해서 표시해 주더라고요. 물론 다른 클라이언트에서는 그렇게 안 보이니까 제 눈에 안경이긴 합니다…

Older →