egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make Eggdrop bot Blind for colors?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Foxman
Voice


Joined: 10 Jan 2007
Posts: 9
Location: Delft, Zuid-Holland, The Netherlands

PostPosted: Wed Jan 10, 2007 5:38 pm    Post subject: How to make Eggdrop bot Blind for colors? Reply with quote

I would like to let my users to be able to use Colors, Bolds, Underlines etc.. and to use public (Eggdrop) commands, to answer Trivia Questions and able to communicate with my AI eggdrop bot.

Or differently said, I would like my eggdrop bot to be blind for Colors, bolds and underline codes...

sounds not to difficult....
How could i make this possible?

Thanks for reading this, or even reply to this Wink
Greetings Foxman
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Wed Jan 10, 2007 5:59 pm    Post subject: Reply with quote

I'm not sure this will work, but it's worth a shot Smile
Code:
unbind raw - PRIVMSG *raw:irc:msg
unbind raw - PRIVMSG *raw:PRIVMSG
bind raw - PRIVMSG striprivmsg
proc striprivmsg {f k a} {
   set a [stripcodes abcgru $a]
   *raw:irc:msg $f $k $a
   *raw:PRIVMSG $f $k $a
}

_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
crux
Voice


Joined: 05 Jan 2007
Posts: 35
Location: Myanmar

PostPosted: Thu Jan 11, 2007 5:51 am    Post subject: Reply with quote

I don't know how to make with color, but if u want trivia with color

Bogus Trivia is the best ... look like mIRC trivia.
_________________
Myanmar Chat Online
MCO Chat
Back to top
View user's profile Send private message Visit poster's website
Foxman
Voice


Joined: 10 Jan 2007
Posts: 9
Location: Delft, Zuid-Holland, The Netherlands

PostPosted: Wed Mar 07, 2007 1:44 pm    Post subject: Reply with quote

User i would like to Thank you very much for that piece of script Wink
It works like a charm Razz

Thanks a lot Wink
Back to top
View user's profile Send private message Visit poster's website
Foxman
Voice


Joined: 10 Jan 2007
Posts: 9
Location: Delft, Zuid-Holland, The Netherlands

PostPosted: Fri Sep 07, 2007 1:24 pm    Post subject: Reply with quote

I always die or get killed on a .rehash because of that little script, any idea why or how to solve that?

I did put that little script in a new fresh TCL file, still works like a charm though... except that i can't rehash anymore Razz
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Sep 08, 2007 1:05 pm    Post subject: Reply with quote

Use catch around the unbinds (I assume those are the lines causing the crashes)
Code:

catch {unbind raw - PRIVMSG *raw:irc:msg}
catch {unbind raw - PRIVMSG *raw:PRIVMSG}

Might want to also read here about how to load scripts without crashing the bot:
http://forum.egghelp.org/viewtopic.php?p=63899#63899
Back to top
View user's profile Send private message
Foxman
Voice


Joined: 10 Jan 2007
Posts: 9
Location: Delft, Zuid-Holland, The Netherlands

PostPosted: Sun Sep 09, 2007 1:55 am    Post subject: Reply with quote

Yes! I can Rehash again, Thank you very much rosc2112 Smile
Back to top
View user's profile Send private message Visit poster's website
br00
Voice


Joined: 19 Jun 2006
Posts: 9

PostPosted: Mon Sep 10, 2007 5:32 am    Post subject: Reply with quote

what a great little piece of script Smile
Back to top
View user's profile Send private message
Pberetta
Voice


Joined: 22 Oct 2007
Posts: 1

PostPosted: Mon Oct 22, 2007 2:12 pm    Post subject: Reply with quote

I created strip.tcl like this
Code:

catch {unbind raw - PRIVMSG *raw:irc:msg}
catch {unbind raw - PRIVMSG *raw:PRIVMSG}
bind raw - PRIVMSG striprivmsg
proc striprivmsg {f k a} {
   set a [stripcodes abcgru $a]
   *raw:irc:msg $f $k $a
   *raw:PRIVMSG $f $k $a
}

putlog "colourstripper... Loaded"

Added to egggdrop.conf

But triviascript still doesn't react to users answering in coloured text. Am i doing something wrong? Help would be greatly apreciated

Peer
Back to top
View user's profile Send private message
Diablo228
Voice


Joined: 27 Sep 2007
Posts: 5

PostPosted: Tue Nov 04, 2008 4:48 am    Post subject: Reply with quote

Thank you so much! I have been fighting with color code issues on Chatspace for months. This little snippet of a script works flawlessly with eggdrop 1.6.19. Users are also able to play BogusTrivia in color now. Sweetness. Thank you all.

--Diablo228--
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber