Informazioni

Questo script nasce con l'intendo di emulare varie funzionalità del "Goku script", uno script di intrattenimento per mIRC.

Per ora ho implementato solo il "Saggio", aggiungendo per altro varie frasi e inserendo risposte parametrizzate basate su numeri random, nick di utenti, ecc...
Un giorno magari lo espanderò ma anche così risulta un utile sistema di intrattenimento per i canali.

Il Saggio risponde solo in italiano.

Un sentito ringraziamento agli autori delle frasi originali ;-)

Nota bene: in realtà sarebbe più corretto definire questo script un simulatore, ma ormai si chiama così...

Versione corrente

La versione attuale è la 0.5.

Cronologia:

0.0
+Definition of the script structure.
0.1
+Added load of library of definitions for "Saggio".
+Added routines to manage !saggio trigger.
+Added replacement of %you with nick and %owner with channel owner as defined in the script.
+Added placeholders %owner (chan owner) and %you (nick who did the question).
0.2
+Added duplicated text check: you can't do the same question two times in a row...
+Added a little antiabuse feature: questions by |B people aren't answered.
+Added placeholder %someone to get a random nick from the channel.
0.3
+Tried to add indipendent chan settings support using lists. Not the best solution as lreplace gives me some problems. Will switch to arrays...
0.4
+Successfully switched to an array solution for channel settings management... now this is a true multichan script!
+Semplified some routines by putting all the checks (validchan, isonchan, matchattr) in the same "if".
+Added multichan support for the anti dupe check too: you can do the same wuestion two times in a row but only on different channels.
-Removed old and unused vars.
+Added placeholder %number which gives a random number (up to 60 for time jokes).
-Fixed emulation of "Saggio" layout: the proper is 'nick, "header: test"', not 'header: text'.
0.5
+Made automatic the creation of the array for lastmsg... (I've learned the use of 'foreach' ;-)
-Removed some unused code left in get_rnd_msg.
-Removed goku_channels list: all the channel management is done using arrays and there is is space for optiomization.
-Fixed again layout: the right one is 'nick, header: "text"'.

Utilizzo

Attualmente sono disponibili due soli comandi da usare in canale:

Download e installazione

Gokuemu può essere scaricato direttamente da questo sito: gokuemu.zip.

Per installarlo procedere come segue:

  1. Lo script è compresso, quindi va scompattato. Da una shell Unix usare: unzip gokuemu.zip.
  2. Personalizzare le impostazioni nel file gokuemu.tcl. Se non lo si fa, lo script non funzionerà.
  3. Copiare gokuemu.tcl e gokuemu_saggio.tcl nella cartella scripts/ del proprio bot Eggdrop.
  4. Aggiungere in coda al file eggdrop.conf la seguente linea: source scripts/gokuemu.tcl
  5. Entrare via DCC o shell nel bot ed inserire il seguente comando: .rehash

Stato dello script

Questo script è freeware. Se ritenete che possa essere migliorato o volete proporre funzionalità aggiuntive vi prego di contattarmi.