gpt4 book ai didi

mIRC 套接字不工作

转载 作者:行者123 更新时间:2023-12-02 07:46:54 25 4
gpt4 key购买 nike

这个套接字不工作,我尝试了一切,但它从未真正显示报价。只是事先的文字。

on $*:TEXT:/^[!@](motivate|mqod|mqotd)/Si:#:{ if ($chan !isin %notlist) {
if ($sock(Motivation)) { notice $nick Please try again in a few seconds. | halt }
set %Motivation $iif($left($1,1) == @, msg $chan, notice $nick) $col
sockopen Motivation motivateus.com 80
} }
on *:SOCKOPEN:Motivation: {
sockwrite -nt $sockname GET /thoughts-of-the-day.htm HTTP/1.1
sockwrite -nt $sockname Host: motivateus.com
sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:Motivation: {
if ($sockerr) { halt }
else {
var %sockreader | sockread %sockreader
if ($regex(%sockreader,(.+)&quot;<br>)) {
%Motivation $+ Today's motivational quote is: $regm1(1) $+
unset %Motivation | sockclose $sockname
}
}
}

最佳答案

我对 mIRC 没有太多经验,但它不是应该是 $regml,而不是 $regm1 吗?

关于mIRC 套接字不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6362933/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com