<?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/21086" />

	<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-01-01T11:59:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-01-01T11:59:18-04:00</updated>

		<published>2022-01-01T11:59:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110734#p110734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110734#p110734"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110734#p110734"><![CDATA[
<blockquote class="uncited"><div>check again the script. After an PHP update the api stopped working. FIxed now.</div></blockquote>Update is evil <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jan 01, 2022 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2022-01-01T10:44:44-04:00</updated>

		<published>2022-01-01T10:44:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110733#p110733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110733#p110733"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110733#p110733"><![CDATA[
check again the script. After an PHP update the api stopped working. FIxed now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10416">BLaCkShaDoW</a> — Sat Jan 01, 2022 10:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-01-01T07:56:53-04:00</updated>

		<published>2022-01-01T07:56:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110730#p110730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110730#p110730"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110730#p110730"><![CDATA[
Some versions of json2dict seem bugged, I usually use another one:<div class="codebox"><p>Code: </p><pre><code>proc json2dict {JSONtext} {  string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jan 01, 2022 7:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2022-01-01T05:35:23-04:00</updated>

		<published>2022-01-01T05:35:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110729#p110729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110729#p110729"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110729#p110729"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>.errorInfo [09:32:57] ----------------unexpected '&lt;' in TOP modewhile executing"_json2dict" (procedure "::json::json2dict" line 2)invoked from within"::json::json2dict $data" (procedure "gsm:getjson" line 3)invoked from within"gsm:getjson "data" $data_search" (procedure "gsm:search" line 40)invoked from within"gsm:search $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"errorCode : NONE----------------</code></pre></div>CrazyCat please Help..<br>&amp; <br>What irc Network you join, Please tell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12883">Goga</a> — Sat Jan 01, 2022 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-12-31T04:51:54-04:00</updated>

		<published>2021-12-31T04:51:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110719#p110719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110719#p110719"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110719#p110719"><![CDATA[
Do <strong class="text-strong">.set errorInfo</strong> when the error occures to have more detailed informations.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Dec 31, 2021 4:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2021-12-31T02:57:24-04:00</updated>

		<published>2021-12-31T02:57:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110716#p110716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110716#p110716"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110716#p110716"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>!gsm Samsung Note 8</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12883">Goga</a> — Fri Dec 31, 2021 2:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-31T02:43:35-04:00</updated>

		<published>2021-12-31T02:43:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110715#p110715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110715#p110715"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110715#p110715"><![CDATA[
What was the exact command you typed that caused that error??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 31, 2021 2:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2021-12-31T02:16:00-04:00</updated>

		<published>2021-12-31T02:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110714#p110714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110714#p110714"/>
		<title type="html"><![CDATA[GSM ARENA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110714#p110714"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>######################################################################################################### GsmArena.tcl 1.2  (03/06/2021)      Copyright 2008 - 2021 @ WwW.TCLScripts.NET ####                        _   _   _   _   _   _   _   _   _   _   _   _   _   _                      ####                       / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \                     ####                      ( T | C | L | S | C | R | I | P | T | S | . | N | E | T )                    ####                       \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/                     ####                                                                                                   ####                                      Â® BLaCkShaDoW Production Â®                                   ####                                                                                                   ####                                              PRESENTS                                             ####                           Â® ##############################################  GSM ARENA TCL   ###########################################                             ####  DESCRIPTION:                              ####  Gives detailed information about mobile phones. You can view the whole information or by     ####  using one or more options available     ####                             ####  Tested on Eggdrop v1.9.0 (Debian Linux 3.16.0-4-amd64) Tcl version: 8.6.9                        ####                             ###########################################################################################################                             ####  INSTALLATION:                              ####     ++ http &amp; json packages are REQUIRED for this script to work.                                 ####     ++ Edit the gsmarena.tcl script and place it into your /scripts directory,                ####     ++ add "source scripts/gsmarena.tcl" to your eggdrop config and rehash the bot.            ####                             ###########################################################################################################                             ####  OFFICIAL LINKS:                                                                                  ####   E-mail      : BLaCkShaDoW[at]tclscripts.net                                                     ####   Bugs report : http://www.tclscripts.net                                                         ####   GitHub page : https://github.com/tclscripts/                              ####   Online help : irc://irc.undernet.org/tcl-help                                                   ####                 #TCL-HELP / UnderNet                                                             ####                 You can ask in english or romanian                                                ####                             ####     paypal.me/DanielVoipan = Please consider a donation. Thanks!                                  ####                             ###########################################################################################################                             ####                           You want a customised TCL Script for your eggdrop?                      ####                                Easy-peasy, just tell me what you need!                            ####                I can create almost anything in TCL based on your ideas and donations.             ####                  Email blackshadow@tclscripts.net or info@tclscripts.net with your                ####                    request informations and I'll contact you as soon as possible.                 ####                             #############################################################################################################  COMMANDS, ACTIVATION and EXAMPLES##To activate use : .set or .chanset #channel +gsmarena####!gsm &lt;mobile name&gt; | &lt;number&gt; (taken from the list) | &lt;slug&gt; [options] | help######If you dont want to see the whole specs of your desired phone,##you can specify them after the &lt;slug&gt; or &lt;number&gt;####Options available:##network launch body display platform memory main_camera selfie_camera sound comms features battery misc camera####Usage:####[22:01:47] &lt;@BLaCkShaDoW&gt; !gsm samsung s10##[22:01:52] &lt;@BT&gt; [GSM] #1.samsung_galaxy_s10_plus_-9535, #2.samsung_galaxy_s10-9536, #3.samsung_galaxy_s10e-9537, #4.samsung_galaxy_s10_lite-9917, #5.samsung_galaxy_s10_5g-9588, #6.samsung_s100-313#[22:01:53] &lt;@BT&gt; [GSM] Use !gsm &lt;slug&gt; or &lt;number&gt; to get info about the phone.####[22:02:36] &lt;@BLaCkShaDoW&gt; !gsm 1##[22:02:39] &lt;@BT&gt; [PHONE] Samsung Galaxy S10+##[22:02:40] &lt;@BT&gt; [IMG] https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-s10-plus-new.jpg##[22:02:41] &lt;@BT&gt; [SOUND] loudspeaker_: Yes, with stereo speakers 35mm_jack_: Yes | 32-bit/384kHz audio  Active noise cancellation with dedicated mic  Dolby Atmos sound  Tuned by AKG##[22:02:44] &lt;@BT&gt; [BATTERY] : Non-removable Li-Ion 4100 mAh battery charging: Fast battery charging 15W  USB Power Delivery 2.0  Fast Qi/PMA wireless charging 15W  Power bank/Reverse wireless charging 9W##[22:02:47] &lt;@BT&gt; [DISPLAY] type: Dynamic AMOLED capacitive touchscreen, 16M colors size: 6.4 inches, 103.8 cm2 (~88.9% screen-to-body ratio) resolution: 1440 x 3040 pixels, 19:9 ratio (~522 ppi density) ##protection: Corning Gorilla Glass 6 | HDR10+  Always-on display##.......##[22:06:16] &lt;@BLaCkShaDoW&gt; !gsm 1 main_camera##[22:06:18] &lt;@BT&gt; [PHONE] Samsung Galaxy S10+##[22:06:19] &lt;@BT&gt; [IMG] https://fdn2.gsmarena.com/vv/bigpic/samsung-galaxy-s10-plus-new.jpg##[22:06:20] &lt;@BT&gt; [MAIN CAMERA] triple: 12 MP, f/1.5-2.4, 26mm (wide), 1/2.55", 1.4Âµm, Dual Pixel PDAF, OIS  12 MP, f/2.4, 52mm (telephoto), 1/3.6", 1.0Âµm, AF, OIS, 2x optical zoom  16 MP, f/2.2, 12mm ##(ultrawide), 1.0Âµm, Super Steady video features: LED flash, auto-HDR, panorama video: 2160p@60fps (no EIS), 2160p@30fps, 1080p@30/60/240fps, 720p@960fps, HDR10+, dual-video rec., stereo sound rec., gyro-EIS ##&amp;OIS######BLaCkShaDoW Production#########################################################################################################                             ####  LICENSE:                                                                                         ####   This code comes with ABSOLUTELY NO WARRANTY.                                                    ####                                                                                                   ####   This program is free software; you can redistribute it and/or modify it under the terms of      ####   the GNU General Public License version 3 as published by the Free Software Foundation.          ####                                                                                                   ####   This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of          ####   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                                            ####   USE AT YOUR OWN RISK.                                                                           ####                                                                                                   ####   See the GNU General Public License for more details.                                            ####        (http://www.gnu.org/copyleft/library.txt)                                                  ####                                                                                                   ####            Copyright 2008 - 2021 @ WwW.TCLScripts.NET                           ####                                                                                                   ###################################################################################################################################################################################################################                               CONFIGURATION FOR GSM ARENA TCL                            ###########################################################################################################Set here the flags for cmd usage###set gsm(flags_needed) "mn|MN"#Here you can set the maximum number of entries to show on search###set gsm(search_entries) "10"#Uppon search the eggdrop will store the data for the current user#for a couple of minutes so you can use !gsm &lt;number&gt; to get info#about a phone. The data ofcourse will be replaced if another search is done#Set here the userhost to use uppon search#####1 - *!*@host#2 - *!user@host#3 - nick!user@host#4 - nick!*@*#5 - *!user@*set gsm(user_host) "1"#How many minutes the data should be saved for the user ?#Use 0 if you want to expire on restart or kill.####set gsm(expire_data) "5"##########################################################################################################                       DO NOT MODIFY HERE UNLESS YOU KNOW WHAT YOU'RE DOING                      ##########################################################################################################setudef flag gsmarenapackage require httppackage require jsonbind pub $gsm(flags_needed) !gsm gsm:searchproc gsm:search {nick host hand chan arg} {global gsmif {![channel get $chan gsmarena]} {return}set search_text [lrange [split $arg] 0 end]set slug [lindex [split $arg] 0]set options [lrange [split $arg] 1 end]set mask [gsm:mask $gsm(user_host) $host $nick]if {[string equal -nocase $slug "help"]} {putserv "PRIVMSG $chan :\[GSM\] Usage !gsm \002&lt;mobile name&gt;\002 | \002&lt;number&gt;\002 (taken from the list) | \002&lt;slug&gt;\002 \[options\]"putserv "PRIVMSG $chan :\[GSM\] Valid options : \002network launch body display platform memory main_camera selfie_camera sound comms features battery misc camera\002"return}if {[regexp {^[0-9]} $slug]} {if {![info exists gsm(data_save:$mask)]} {puthelp "PRIVMSG $chan :\[GSM\] You didnt search for anything or you search data expired."return}set slug_search [lsearch -nocase $gsm(data_save:$mask) "$slug:*"]if {$slug_search == "-1"} {puthelp "PRIVMSG $chan :\[GSM\] The number is unavailable in your latest search."return}set slug_entry [lindex $gsm(data_save:$mask) $slug_search]set split_entry [split $slug_entry ":"]set slug [lindex $split_entry 1]set data_slug [gsm:getdata $slug 1]gsm:slug_info $nick $chan $data_slug $slug $optionsreturn} elseif {[regexp {[_]} $slug]} {set data_slug [gsm:getdata $slug 1]gsm:slug_info $nick $chan $data_slug $slug $optionsreturn}set counter 0set text ""set data_search [gsm:getdata $search_text 2]set json_data [gsm:getjson "data" $data_search]set llength [llength $json_data]if {$llength == "1"} {set title [lindex $json_data 0]set slug [lindex $json_data 1]} else {if {[info exists gsm(data_save:$mask)]} {unset gsm(data_save:$mask)}foreach line $json_data {set counter [expr $counter + 1]if {$counter &lt;= $gsm(search_entries)} {set title [lindex $line 1]set slug [lindex $line 3]lappend text \002\#$counter\002.$sluglappend gsm(data_save:$mask) $counter:$slug}}foreach tmr [utimers] {if {[string match "*gsm:unset_saved_data $mask*" [join [lindex $tmr 1]]]} {killutimer [lindex $tmr 2]}}if {[info exists gsm(data_save:$mask)]} {if {$gsm(expire_data) &gt; 0} {utimer [expr $gsm(expire_data) * 60] [list gsm:unset_saved_data $mask]}}set text [join $text  ", "]if {$text != ""} {foreach w [gsm:wrap $text 440] {putserv "PRIVMSG $chan :\[GSM\] $w"}putserv "PRIVMSG $chan :\[GSM\] Use \002!gsm &lt;slug&gt;\002 or \002&lt;number&gt;\002 to get info about the phone."} else {puthelp "PRIVMSG $chan :\[GSM\] Couldn't find anything related to \002$search_text\002"}}}# Creditsset gsm(projectName) "GsmArena.tcl"set gsm(author) "BLaCkShaDoW"set gsm(website) "wWw.TCLScriptS.NeT"set gsm(email) "blackshadow\[at\]tclscripts.net"set gsm(version) "v1.2"###proc gsm:slug_info {nick chan data slug options} {global gsmif {[string match -nocase "*Fatal error*" $data]} {putserv "PRIVMSG $chan :\[GSM\] Couldn't find anything related to slug \002$slug\002. Did you typed it corectly ?"return}array set data_list [list]set entries {network launch body display platform memory main_camera selfie_camera sound comms features battery misc camera}set phone_title [gsm:getjson "title" $data]set phone_data [gsm:getjson "data" $data]set phone_img [gsm:getjson "img" $data]foreach e $entries {if {$options != ""} {if {[lsearch -nocase $options $e] &lt; 0} {continue}}if {[string equal -nocase $e "main_camera"]} {set e "main camera"} elseif {[string equal -nocase $e "main_camera"]} {set e "selfie camera"}set get_item [gsm:get_it $e $phone_data]if {$get_item != "-1"} {set data_list($e) $get_item}}if {$phone_title != "-1"} {putserv "PRIVMSG $chan :\[PHONE\] $phone_title"}if {$phone_img != "-1"} {putserv "PRIVMSG $chan :\[IMG\] $phone_img"}if  {[array size data_list] == "0"} {putserv "PRIVMSG $chan :\[GSM\] N/A (did you check if the option is correct ?)."putserv "PRIVMSG $chan :\[GSM\] End of phone info."return}foreach entry [array names data_list] {putserv "PRIVMSG $chan :\[[string toupper $entry]\] [gsm:filter [gsm:utf8 $data_list($entry)]]"}putserv "PRIVMSG $chan :\[GSM\] End of phone info."}###proc gsm:get_it {type data} {global gsmset pos [lsearch -nocase $data $type]if {$pos &lt; 0} {return -1}set pos_details [lindex $data [expr $pos + 1]]set llength [llength $pos_details]for {set i 0} { $i &lt; $llength } {incr i} {if {[expr $i % 2] == 0} {lappend info \002[lindex $pos_details $i]:\002} else {lappend info [lindex $pos_details $i]}}return [string map {"&lt;br&gt;" "\002 | \002"} [join $info]]}###proc gsm:utf8 {string} {global gsm   set map {}    foreach {entity number} [regexp -all -inline {&amp;#(\d+)} $string] {        lappend map $entity [format \\u%04x [scan $number %d]]    }    set string [string map [subst -nocomm -novar $map] $string]return $string }###proc gsm:filter {string} {global gsmset text [string map {"; " ""} $string]return $text}###proc gsm:unset_saved_data {mask} {global gsmif {[info exists gsm(data_save:$mask)]} {unset gsm(data_save:$mask)}}###proc gsm:getdata {search type} {global gsmswitch $type {1 {set link "http://gsmarena.tclscripts.net/index.php?slug=$search"}2 {set search [join $search "%20"]set link "http://gsmarena.tclscripts.net/index.php?query=$search"}}set ipq [http::config -useragent "lynx"]set ipq [::http::geturl "$link" -timeout 10000]set data [http::data $ipq]::http::cleanup $ipqreturn $data}###proc gsm:getjson {get data} {global imdbset parse [::json::json2dict $data]set return ""foreach {name info} $parse {if {[string equal -nocase $name $get]} {set return $infobreak;}}return $return}###proc gsm:wrap {str {len 100} {splitChr {,}}} {   set out [set cur {}]; set i 0   foreach word [split [set str][unset str] $splitChr] {     if {[incr i [string len $word]]&gt;$len} {         lappend out [join $cur $splitChr]         set cur [list $word]         set i [string len $word]      } {         lappend cur $word      }      incr i   }   lappend out [join $cur $splitChr]}###proc gsm:mask {type uhost user} {global blackset ident [lindex [split $uhost "@"] 0]set host [lindex [split $uhost @] 1]switch $type {1 {return "*!*@$host"}2 {return "*!$ident@$host"}3 {return "$user!$ident@$host"}4 {return "$user!*@*"}5 {return "*!$ident@*"}}}putlog "\002$gsm(projectName) $gsm(version)\002 coded by\002 $gsm(author)\002 ($gsm(website)): Loaded &amp; initialised.."</code></pre></div>Error is :-<div class="codebox"><p>Code: </p><pre><code>Tcl error [gsm:search]: unexpected '&lt;' in TOP mode</code></pre></div>Please Help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12883">Goga</a> — Fri Dec 31, 2021 2:16 am</p><hr />
]]></content>
	</entry>
	</feed>
