i put all my command like this example (, Color...) if ($msg eq'!say (.*)'){ $self->sendmsg("$1", Color => '$color'); }
how i do for set $color with a command like if ($msg eq'!set color (.*)'){ ...... plz can someone help me
Your last post said "do it for me plz" and this post is exactly the same except you changed it to "plz can someone help me"
Here is help: If the command is to set a global color throughout the entire bot, use a global variable $color, and then set that variable to any color with a command. If it's for per-user things, use a hash.
There. That's help. I didn't even have to give you any codes. See if you can figure it out on your own. _________________ Current Site (2008) http://www.cuvou.com/
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Mon Feb 21, 2005 3:58 am Post subject:
QUOTE(mathieu2005 @ Feb 20 2005, 05:19 PM)
oh sorry im a newb and everybody know that just close and delete this topic
A few tips. 1. Use code tags so that your code is formated nice. Its that code button in the post window. 2. Read your posts after writing them. If they aren't readable then stop and rewrite them. I've never even read your posts because they are such a mess. If you can't take the time to make them look nice, why should I take the time to help? _________________ Eric256
Proud previous owner and current admin of Bot-depot.com
ok i want to put all my command like (this example)with , Color => '$color' if ($msg eq'!say (.*)'){ $self->sendmsg("Your Message:$1", Color => '$color'); } but i want to set $color by a commands can someone help me to do this.
He means "Just give me the code , because I can't do it" _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com