연결 중…
연결 중…
전체 보기
성장 다오ㅣ에드작 맛집 전문
Telegram · @grow_airdrop

✔️ Sentient 챗 자동화 스크립트

게시
2025.11.11 23:06
조회
171
포워드
5

커뮤에 코드도 가져오고 싶은데 도저히 방법을 모르겠음...; 혹시 알려주실 천사분 안계시나..

아래 코드 F12 console에 복붙

혹시나 Sentient 에드를 위해서 챗 작업 하시는 분들을 위한 콘솔 스크립트

우선 오류가 그렇게 크지 않아서 저는 이렇게 쓰고 있는데 다듬으실 분들은 AI 활용하셔서 바꾸시면 될듯

추가로 AI에게 물어볼 메시지는 코드 상단에서 추가 및 고치시면 됩니다.

let count = 0;
const MAX_COUNT = 30;

// 원하는 메시지 리스트 (예: 코인 가격 물어보기)
const messages = [
"Price of $BTC",
"Price of $ETH",
"Price of $SOL",
"Price of $XRP",
"Price of $ADA",
"Price of $DOGE",
"Price of $SHIB",
"Price of $FLOKI",
"Price of $PEPE",
"Price of $AVAX"
// 필요시 더 추가
];

const getRandomInterval = () => {
return Math.floor(Math.random() * (60000 - 30000 + 1)) + 30000; // 30~60초
};

console.log("Sentient 자동화 봇 시작... (30회 전송)");

const interval = setInterval(() => {
if (count >= MAX_COUNT) {
clearInterval(interval);
console.log("Finished 30 messages!");
return;
}

// 1. 입력창 찾기 (placeholder 기반)
const inputBox = document.querySelector('textarea[placeholder*="Ask Sentient"]') ||
document.querySelector('textarea[placeholder*="ask"]') ||
document.querySelector('textarea');

// 2. 전송 버튼 찾기 (주황색 화살표)
const sendButton = document.querySelector('button[type="submit"]') ||
document.querySelector('button:has(svg)') ||
document.querySelector('button[aria-label="Send"]') ||
Array.from(document.querySelectorAll('button')).find(btn =>
btn.innerHTML.includes('svg') && getComputedStyle(btn).color.includes('orange')
);

if (!inputBox || !sendButton) {
console.log("Input box or send button not found yet... waiting.");
return;
}

// 3. 랜덤 메시지 선택
const message = messages[Math.floor(Math.random() * messages.length)];

// 4. React 입력 강제 설정
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
window.HTMLTextAreaElement.prototype, "value"
).set;

nativeInputValueSetter.call(inputBox, message);
inputBox.dispatchEvent(new Event('input', { bubbles: true }));
inputBox.dispatchEvent(new Event('change', { bubbles: true }));

// 5. 전송 버튼 클릭 (활성화된 경우)
setTimeout(() => {
if (!sendButton.disabled && sendButton.offsetParent !== null) {
sendButton.click();
console.log(Sent [${count + 1}/30]: ${message});
count++;
} else {
console.log("Send button disabled or hidden... retrying.");
}
}, 300); // 약간의 딜레이로 DOM 반영 대기

}, getRandomInterval());

조회171포워드5텔레그램에서 보기