User Control Panel
Advertisements

HELP US, HELP YOU!

change display name

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Destroyer_XO
Newbie
Newbie


Joined: 01 Jan 2004
Posts: 43

Reputation: 29.4Reputation: 29.4Reputation: 29.4

PostPosted: Sat Jan 03, 2004 4:42 am    Post subject: Reply with quote

*lazy* been looking around but where ever i go i cant find the right command

i have a perl msn bot

please help
:wacko:
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Sat Jan 03, 2004 4:45 am    Post subject: Reply with quote

Code:
$msn->set_name("name here");


hey thats the cmd to change your name and tbh you should easily be able to edit this to change name.
Back to top
Destroyer_XO
Newbie
Newbie


Joined: 01 Jan 2004
Posts: 43

Reputation: 29.4Reputation: 29.4Reputation: 29.4

PostPosted: Sat Jan 03, 2004 4:48 am    Post subject: Reply with quote

*lazy* tried that i just get an error
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Sat Jan 03, 2004 5:01 am    Post subject: Reply with quote

have *lazy* set $msn or are you using something different eg $client and what template are you using?
Back to top
Destroyer_XO
Newbie
Newbie


Joined: 01 Jan 2004
Posts: 43

Reputation: 29.4Reputation: 29.4Reputation: 29.4

PostPosted: Sat Jan 03, 2004 5:04 am    Post subject: Reply with quote

im useing web bots templete
if it helps this is the error i get

Quote:
Can't call method "set_name" on an undefined value at commands/nickmsg.pl line 6
, line 5.
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Sat Jan 03, 2004 7:28 am    Post subject: Reply with quote

go into bot.pl and find where it says

my $msn = new MSN (Handle => ......)
and take the 'my' off

and please dont post in this forum for help, its for sharing commands
Back to top
Destroyer_XO
Newbie
Newbie


Joined: 01 Jan 2004
Posts: 43

Reputation: 29.4Reputation: 29.4Reputation: 29.4

PostPosted: Sat Jan 03, 2004 7:39 am    Post subject: Reply with quote

well while its here
it worked but now i have an error in the commands.pl on lin 33

it says undefined subroutine &main::nickmsg called at extras/command.pl line 33, line 11.
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Sat Jan 03, 2004 7:41 am    Post subject: Reply with quote

did you name the file nickmsg.pl? if so you could always post your code and we can take a look and see whats wrong
Back to top
Kankionojoku
Newbie
Newbie


Joined: 13 Dec 2003
Posts: 14

Reputation: 29.5Reputation: 29.5Reputation: 29.5

PostPosted: Wed Jan 14, 2004 1:50 pm    Post subject: Reply with quote

Heyas... when I do the setname function it comes up !setname n the name what i typed in... how would i get !setname off from the name?

Here is my code:

Code:
if ($msg =~ /(^\!setname)/i) {<br />   $msn->set_name("$msg");<br />return;<br />}


Hope you can help.
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Wed Jan 14, 2004 5:52 pm    Post subject: Reply with quote

Code:
if ($msg =~ /(^\!setname)/i) <br />{<br />   $msg =~ s/^!setname //i;<br />   $msn->set_name($msg);<br />return;<br />}


should do it
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Wed Jan 14, 2004 5:54 pm    Post subject: Reply with quote

Code:
<br />if ($msg =~ /(^\!setname (.*)$/)/i) {<br />$msn->set_name("$1");<br />return;<br />}<br />
Back to top
Stephen
Senior Member
Senior Member


Joined: 03 Dec 2003
Posts: 159

Reputation: 32.8Reputation: 32.8Reputation: 32.8

PostPosted: Wed Jan 14, 2004 7:43 pm    Post subject: Reply with quote

Dan thats wrong Razz

Code:
if ($msg =~ /(^\!setname (.*)$/i) {<br />$msn->set_name("$1");<br />return;<br />}


or this should do it Smile
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Wed Jan 14, 2004 8:02 pm    Post subject: Reply with quote

Stephen you missed it too. LOL

Code:
if ($msg =~ /^\!setname (.*)$/i) {<br />$msn->set_name("$1");<br />return;<br />}<br />


Very close though. You can also change 'return;' to 'return "message here";'

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Wed Jan 14, 2004 8:17 pm    Post subject: Reply with quote

and even eric included the quotes around the $1 Surprised
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group