This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 17 matches

by ribot
Sun Jul 04, 2004 7:20 pm
Forum: Archive
Topic: freespeak
Replies: 1
Views: 1772

-freespeak to quiet it?

could always write a tcl for it with some random reply proc like:
{if [rand 12] == [rand 12]}

if it's too often you could do
{if [rand 120] == [rand 120]}

and if that's too seldom you pick a number in between. otherwise type a letter.
by ribot
Sun Jul 04, 2004 7:06 pm
Forum: Archive
Topic: rehash crashes - restart doesn't (also empty string prob)
Replies: 5
Views: 2532

welll does anyone else have the same problem as me? how do you fix bugs, after changing the code? do you rehash, or restart perhaps? maybe im doing something wrong...? or maybe the bot just crashes because it's not supposed to handle mod changes while it's running?
by ribot
Sun May 30, 2004 4:42 am
Forum: Archive
Topic: rehash crashes - restart doesn't (also empty string prob)
Replies: 5
Views: 2532

I think I am supposed to have a logical expression. And the question is about c, because I know how to do it in tcl.

This is how to do it in tcl:

Code: Select all

if {$text == ""} {}
How do I make this true in c, with var text, (if text is empty the expression should return true).
by ribot
Sun May 23, 2004 12:32 pm
Forum: Archive
Topic: rehash crashes - restart doesn't (also empty string prob)
Replies: 5
Views: 2532

rehash crashes - restart doesn't (also empty string prob)

As I update the code for my module, and run "make" without errors, copy the module to eggdrop's modules, sometimes everything goes smoothly. But sometimes the bot crashes because of a segment violation. I guess it can happen even if it works to compile the mod, but the strange thing is tha...
by ribot
Sun May 16, 2004 6:14 am
Forum: Archive
Topic: best bot functions - what you can use a bot for
Replies: 5
Views: 2198

best bot functions - what you can use a bot for

Hello, hope you don't mind this kind of post in here, but I want to discuss ideas of uses of bots, and am interested in what bots are used for. This is of course excluding giving ops, seen function, stats... For example I've seen weather info bots, dictionary bots, google search ones, AI chatting on...
by ribot
Sun May 16, 2004 5:48 am
Forum: Archive
Topic: .op
Replies: 1
Views: 866

tell what happens when you use .op nick #channel
by ribot
Wed Apr 28, 2004 7:14 am
Forum: Archive
Topic: net: eof!(write) socket 6 (Connection refused,111)
Replies: 0
Views: 657

net: eof!(write) socket 6 (Connection refused,111)

Hello. My bot gets the error: net: eof!(write) socket 6 (Connection refused,111) when it's trying to connect to server. Sometimes it says socket 5 or socket 7, but it's always 111. It did this on one server at first, after it died from a script error (EOF from client on IRC). I couldn't solve the pr...
by ribot
Sun Apr 18, 2004 7:09 pm
Forum: Archive
Topic: adding text (bot chat) to logfile
Replies: 6
Views: 2796

adding text (bot chat) to logfile

hello friend :)

It seems that di old bot doesn't log its own public chatter, so I wonder how I can do that.
The chatter is when the bot sends strings to channels, so it should be as easy as:
"putlog $string"
but I want this text to be added to a specific file: channel.log.
by ribot
Fri Oct 24, 2003 3:06 pm
Forum: Archive
Topic: How can I add things to megahal's brain?
Replies: 6
Views: 1595

either learn tcl or maybe there is some tcl script that can catch text from a url. then you just make the bot learn it :]
by ribot
Fri Oct 24, 2003 2:51 pm
Forum: Archive
Topic: Public Command Script
Replies: 7
Views: 1463

it seems to me that you dont want to founder a nick that isnt +n, so why in that case make a defounder function for that? shouldn't something like this be put in the first script: if {[matchattr $foundernick n]} { putquick "MODE $chan +q $nick" } or even simpler, why not just make the bind...
by ribot
Fri Oct 24, 2003 2:33 pm
Forum: Archive
Topic: net: errors when trying to connect 2 any server
Replies: 3
Views: 1127

did you write the correct ip? is the computer connected directly to internet or through a lan?
by ribot
Mon Sep 15, 2003 6:30 pm
Forum: Archive
Topic: linuxhelp: exec ps
Replies: 0
Views: 664

linuxhelp: exec ps

i have seen in a script where they use:

exec ps --format=rss --noheading $botpid

to get the memory that the bot uses. I wonder how i can do something similar to get 1) the memory usage of bash, 2) total memory usage of shell computer, 3) total processor usage of shell computer.
by ribot
Fri Sep 12, 2003 1:49 am
Forum: Archive
Topic: edit file
Replies: 3
Views: 1233

how do i read it into memory?
by ribot
Fri Sep 12, 2003 12:10 am
Forum: Archive
Topic: edit file
Replies: 3
Views: 1233

edit file

Hello :) I have a file.txt with lists on each row such as: {pubm hello} {0 0} {pubm hi} {0 0} {pubm well} {pubm ok} {0 0} What I want to do is to change these 0:s. I want to know how I can change the line: {pubm hi} {0 0} to {pubm hi} {1 0} and still keep all above and below lines intact. I figured ...
by ribot
Mon Sep 08, 2003 4:44 pm
Forum: Archive
Topic: bind any raw command
Replies: 6
Views: 1774

alright i will do that then, thank you very much user.

caesar: good tip, i will do that, ty.