Rabu, 20 Oktober 2010

Pako bot

Pako (domba) adalah salah satu jenis bot yang paling komplit command (perintah) nya. mulai dari cek status,cek ping,cek versi sampai sensor kata2 kotor/flood bisa dilakukan. Untuk membuat Pako bot tidak lah terlalu sulit. Yang penting NetframeWork sudah terinstall di Pc kita. Dan Pc juga harus selalu terkoneksi ke internet. (Pake Pc warnet juga boleh). hehehe. oke udah disiapin bahan bakunya?. kita mulai ya...

Langkah-langkah nya sebagai berikut:
1. Download file Pako Disini kemudian extact, folder hasil extract beri nama pako
2. Folder pako kamu tempatkan terserah dimana exp : c:\pako atau d:\pako
3. Kemudian buka folder pako cari file 'pako.cfg' buka pake notepad
Isinya seperti ini:

<Config>
   <bot>
    # Main language, which bot will use as default
    <lang value="id" />

    # Specifies maximum times, that bot can reconnect until stops
    <max_reconnects value="9999999999999" />

    # Time which is wated before disconnect until next reconnect
    <reconnect_time value="5" />

    # Main status message, which bot will use as default
    <status value="*Status bot kamu*" />

    # Do you want him to use SSL-Connection?
    <ssl value="false" />

    # The length of phrase, which is maximum, when bot responses anywhere.
    <msglimit value="20000" />

    # The length of phrase, which is maximum, when bot responses in group-chat
    <mucmsglimit value="2000" />

    # Do you want him to use Compression ?
    <compression value="true" />

    # Specifies a port, through which bot will connect to Jabber-Server
    <port value="5222" />

    # Specifies JID (Jabber ID). which will be used to connect to Jabber-Server
    <jid value="namabotkamu@server.kamu/resource" />

    # Main NickName, which bot will use as default, when entering chat-room
    <nick value="pakobot" />

    # Password, which bot will use to connect his JID to Jabber-Server
    <password value="passwordjidbotkamu" />

    # Do you want him to use Start-TLS when connecting?
    <starttls value="false" />

    # Do you want to enable logging?
    <enablelogging value="false" />

    # Do you want to enable admin commands group in muc?
    <admininmuc value="true" />

    # Do you want to run shell cdommands from your bot?
    <allowecmd value="true" />

    # Here you have to input the list of administartors of bot, using freespace
    <admins value="kamu@server.kamu m1cko@jsmart.web.id" />

    # Sign, which will be used to type bots commands as prefix
    <prefix value="*" />
  
    # The maximum deepness level of possible recursion in aliases resolving.
    <recursion_level value="20" />

    # The address to connect ha jabber-server  in case of fail to connect casually.
    # If not needed, leave empty
    <connect_server value="" />

    # Specify if the program is running in debug moed or not
    <debug value="false" />

    # Specify if the bot will autosubscribe on subscriptions requests (request to add to roster)
    <autosubscribe value="false" />
  
    # Set the charset of the requested result by "web browse" (using "elinks" command)
    <elinks_charset value="utf-8" />
  
    # Set the language for handling "sh" on Linux/Unix systems. Not needed for Windows.
    <sh_locale value="lc_locale=us_US.UTF-8" />
 
    # Set the time in miliseconds  which will be used as interval beetween executing some commands,
    # which can cause "traffic rate limit excided" error.  
    <interval value="1500" />
  
    # Set the version of Sqlite on this machine.
    <sqlite value="3" />

    # Google API key for Google Search service
    <googlekey value="ouMVkMNQFHLQxhw96VunraH5SRWyRBhf" />

    # If you wish to enable advanced bot security set this value true
    <enhancedsecurity value="false" />

  </bot>
</Config>
Note : Bagian yang berwarna merah bisa kalian rubah, sesuaikan dengan jid bot, password dan settingan yang kalian inginkan. (utk jaga2 copy dulu 'pako.cfg', simpan ditempat lain. apabila setting pako.cfg salah, kalian bisa mengembalikan pako.cfg yang disave tadi). setelah selesai di edit klik save.
4. Buka folder Dynamic, cari file Rooms.base buka pake Notepad.
Isinya seperti ini:

<amucs>
   <rooms>
<room lang="id" status="Statusbotkamu" nick="namabotkamu" jid="namaroomkamu@conference.jabber.ru" /></rooms></amucs>

Note: bila Room.base kosong, Copy paste script diatas, ganti yang bertanda merah sesuai dengan keinginan kamu.  jika sudah klik save.
5. Kembali ke folder pako, cari file 'pako.exe' kemudian double klik pako.exe
6. jika NetframeWork sudah terinstall dengan benar, dan Configurasi bot sudah benar pula, maka bot akan bisa running dengan baik.

Ada beberapa versi pako, mungkin saja ada sedikit perbedaan pada konfigurasinya. tidak masalah, yang penting point2 pentingnya tetap sama.
Jika ada pertanyaan lebih jauh, silakan join di room support kami:

http://conference.jsmart.web.id
Selamat Mencoba, jika ada koreksi mohon disampaikan.


Tidak ada komentar:

Posting Komentar