"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[227],{3227:function(D,u,e){e.d(u,{createPost:function(){return o}});var t=e(90706);async function o(D,u){try{console.log("Creating post with session:",D.sub),console.log("Post text:",u.text);let e=new t.Agent(D),o="\uD83D\uDEBD",r=u.text;for(let D of["\uD83D\uDEBD","\uD83E\uDDFB","\uD83D\uDCA9","\uD83D\uDCA8","\uD83D\uDEBE","\uD83E\uDDFC","\uD83E\uDEA0","\uD83D\uDEBB","\uD83E\uDE78","\uD83D\uDCA7","\uD83D\uDCA6","\uD83D\uDE0C","\uD83D\uDE23","\uD83E\uDD22","\uD83E\uDD2E","\uD83E\uDD74","\uD83D\uDE2E‍\uD83D\uDCA8","\uD83D\uDE33","\uD83D\uDE35","\uD83C\uDF3E","\uD83C\uDF66","\uD83D\uDCF1","\uD83D\uDCD6","\uD83D\uDCAD","1️⃣","2️⃣","\uD83D\uDFE1","\uD83D\uDFE4"])if(u.text.includes(D)){o=D,r=u.text.replace(D,"").trim();break}let c={$type:"im.flushing.right.now",text:r,emoji:o,createdAt:new Date().toISOString()};console.log("Creating flush record:",c);let n=await e.api.com.atproto.repo.createRecord({repo:D.sub,collection:"im.flushing.right.now",record:c});return console.log("Post created successfully:",n),n}catch(D){throw console.error("Failed to create post:",D),D}}}}]);