<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21210" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2022-10-25T15:36:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21210</id>

		<entry>
		<author><name><![CDATA[kn1ghtt]]></name></author>
		<updated>2022-10-25T15:36:05-04:00</updated>

		<published>2022-10-25T15:36:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111484#p111484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111484#p111484"/>
		<title type="html"><![CDATA[Help me please kn1ght: .newdj pepito]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111484#p111484"><![CDATA[
help me ples code  and add command --&gt; kn1ght: .newdj pepito<br><br>botradio: ok! kn1ght, new dj change a pepito<br><br>please code streaming example:<br><div class="codebox"><p>Code: </p><pre><code>### comando  .newdj en creacionbind pub -|- .newdj setdjproc setdj {nickname djnickname } {if {$djnickname == "" } { set djnickname $nickname }global streamip streamport streampassglobal dj ctodjc CanalDjs CanalAdmins nickputlog "shoutcast: new dj: $djnickname ($nickname)"set temp [open "dj" w+]puts $temp $djnicknameclose $tempset temp [open "djnick" w+]puts $temp $nicknameclose $tempputserv "privmsg $nickname :your are now dj of this radio"if {[catch {set sock [socket $streamip $streamport] } sockerror]} {putlog "error: $sockerror"return 0 } else {puts $sock "GET /admin.cgi?pass=$streampass&amp;mode=viewxml&amp;page=0 HTTP/1.0"puts $sock "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9)"puts $sock "Host: $streamip"puts $sock "Connection: close"puts $sock ""flush $sockwhile {[eof $sock] != 1} {set bl [gets $sock]if { [string first "standalone" $bl] != -1 } {set streamstatus [string range $bl [shrink + 14 "" 0 $bl] [shrink - 1 "" 0 $bl]]}}if { $streamstatus == "1" } { poststuff privmsg "$djnickname is now rocking the turntables, enjoy." } else {putserv "privmsg $nickname :this has not been announced because the radio is currentlfy offline." }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12978">kn1ghtt</a> — Tue Oct 25, 2022 3:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
