From: manveru Date: 2005-08-03T00:07:41+09:00 Subject: Re: require each time new [irc::bot] dave schrieb: >If you have the possibility, can you relase an Irc::Bot lib? > >It would be wonderfull. > Tanks to the two who helped me with load(). it卒s working fine, and i can code a lot faster now: ;) but i stumbled over another problem: i have got the hostmask of a person and i made a class User with the method nick. now i wonder, how do i create a object to represent a User? is there a way to create a object out of a hostmask? because somewhere i read that a string is no object... is that true? this is my Userclass so far... (i know there are ways to improve that, but i卒m with ruby since 3 days only :) class User attr_accessor :hostmask attr_reader :nick def initialize @hostmask = "" @nick = "" end def nick(hostmask = @hostmask) if hostmask != "" @nick = hostmask.split("!") @nick = @nick[0].split(":") @nick[1].chomp end end end @dave so far i don卒t know if i get to that point, as i卒m making a very specialized kind of bot to control some channels. but if you let me know what that bot should be able to do, i卒ll try to implement it and put it online btw: wouldn卒t it be cool to have a GPL-bot who distributes his code by DCC? :) so far it卒s able to respond to the most common things like PING or VERSION, so it will survive in IRC, now 鱈卒m coding some user and channel-objects for manipulation. thx in advance Michael Fellinger