|
| Author |
Message |
Saphire Newbie

Joined: 03 Apr 2005 Posts: 26 Location: Hertfordshire, England
 
|
Posted: Mon Apr 04, 2005 8:05 pm Post subject: |
|
|
Hi, <_<
I have the nameme code but i want it so that you have BOTS NAME ::: MESSAGES "Lalalala from whoever"
If somone can help. Thanks.
| Code: | | if($msg =~ /^nameme (.*)/)<br />{<br /> ($mainname,$theclient) = split (/@/,$username);<br />$bot->{store}->{UsersBotSettings}->{UserDisplayName} = "$1 by $mainname";<br /> $msn->setName( "$bot->{store}->{Settings}->{DisplayName} $bot->{store}->{UsersBotSettings}->{UserDisplayName}" );<br /><br />} |
|
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Mon Apr 04, 2005 9:24 pm Post subject: |
|
|
Just add a ":::" between the two hashrefs in the setName command. This isn't rocket science. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
JTW God Like

Joined: 07 Mar 2004 Posts: 582 Location: Maidstone
  votes: 4
|
Posted: Tue Apr 05, 2005 1:51 am Post subject: |
|
|
Also you might want to check this line
| Code: | | $msn->setName( "$bot->{store}->{Settings}->{DisplayName} |
i see 3 potential errors right away _________________ "Help us, Help you" - BotDepot |
|
| Back to top |
|
 |
Saphire Newbie

Joined: 03 Apr 2005 Posts: 26 Location: Hertfordshire, England
 
|
Posted: Tue Apr 05, 2005 7:46 am Post subject: |
|
|
Thanks you two. I see what he means about the code ill have to edit it.
See ya! 
Aswell Draget posted somthing about the Display name on the code just after i posted this. 
EDIT: I have edited the code so it works properlly!
| Code: | | my $name = $1;<br />$msn->setName("Saphire-Bot ::: Shoutouts: $name by $username");<br />&send($self,"[$bot_name] Display name set to $1", "$username"); |
|
|
| Back to top |
|
 |
|