From: dave Date: 2005-08-03T00:33:39+09:00 Subject: Re: require each time new [irc::bot] --nextPart1607033.j6ng1nv9N3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > wouldn=C2=B4t it be cool to have a GPL-bot who distributes his code by=20 > DCC? Yes. > specialized kind of bot to control some channels module Irc class Bot # An "abstract" bot could be initalized with a settings obj. # The setting obj may contain the bot name, version, and channels # to control. def initialize(settings) end def connect_to_server(server) end def connect_to_servers(server_ary) end def connect_to_server_list() end def disconnect() end # Join channels to control def join_channels(server) end # Define a trigger =20 def define_trigger(trigger) end =20 # Activate the trigger def activate_trigger(trigger_name) end end end I thinck this should be a good starting point for a base class. =2D-=20 >here are more things in heaven and earth, horatio, than are dreamt of in your philosophy. --nextPart1607033.j6ng1nv9N3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iQIVAwUAQu8+BaNg16HTgg0AAQLTag//Z7Jsdga1Bhv0i2GVuvp6B2K+DY7VwOQQ M4e+kDJDZ6cmhNIZluGA+ou6XVeSkRDPwu6ZwKkTBtaKBT1NAE92MFXEaM2H7cRk ClrSbymbi7VYNu1iHhDpA/9J/8Jmbj2v7UNRntSmO6GubcWsB/YlC/hh47QIVkoc gPpTp4YLJYBUGCSxinu4kgBO2n3IR8NCZYG2gK/umVBpRyrcfG+G+mXTIYvOq30c j60TRfbmi/n3ReZstrrOAQH3YdXIaZst4ExarUyo0RUC/FUNQAahvHeNPQ+uCp3T 0hZvFQ8zUtWfGf7cVfVAXuGLQ4b2HLyOIee4OYmXBIdN4Gn7FEJE7CDXv4dWWKhP DTXYmBkYHoKmjy49Dv7fHMUvO0mC+2ym25hnaETOv+qkKA33A7WjsxYxeyEHcu/Q A+uWqmrn8iNKWLGMHROBc0gzg6H48dEFCnR7YZ0usuvYxcbfadPSWAIhDpafA/1q jRqg7ZY2ab9fR0w8YljYEaCHwuluKQ1VcqCoQw308WO8ixU3aZ0324epdkPIZPdd 8AtAsADzWn+Qwv4vhqAhuBmLkAJgzPOoFAfmXFb4ym7FbX3eBPiD2GSt6WnVKA91 psMsPxsiWq/G+Z5sVpr3bfcYgAmVNn6w55H6M5PWx2QCRAIEjK0lAgIVC0ozsxML VxqfSGqf7pg= =ewRN -----END PGP SIGNATURE----- --nextPart1607033.j6ng1nv9N3--