User Control Panel
Advertisements

HELP US, HELP YOU!

help with chat room plz
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Stephen
Senior Member
Senior Member


Joined: 03 Dec 2003
Posts: 159

Reputation: 32.8Reputation: 32.8Reputation: 32.8

PostPosted: Mon Jan 05, 2004 2:22 pm    Post subject: Reply with quote

sorry dont have the code Razz
just a suggestion.
(btw as *lazy* can see i dont post much because id rather look
around the forum for commands and help Smile )
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Mon Jan 05, 2004 6:19 pm    Post subject: Reply with quote

Code:
$self->sendmsg($reply) unless ($self eq $chat);

would make it talk unless its the chat room, if you can find out where to put it yourself Smile
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Jan 12, 2004 7:58 am    Post subject: Reply with quote

hi is there like a .pl file for andromeda for this, im still waiting for some one to explain where i paste this and how. is that the finished code if not can some one post it for me, much appreciated
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Mon Jan 12, 2004 11:44 am    Post subject: Reply with quote

i dont use that template.. infact i hate it but i could probably pull something together for you Very Happy
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Jan 12, 2004 7:14 pm    Post subject: Reply with quote

Quote:
hi is there like a .pl file for andromeda for this, im still waiting for some one to explain where i paste this and how. is that the finished code if not can some one post it for me, much appreciated


yes plz do , i need that desperatly
Back to top
Oggie
Young One
Young One


Joined: 05 Dec 2003
Posts: 73

Reputation: 30.9Reputation: 30.9Reputation: 30.9

PostPosted: Mon Jan 12, 2004 9:33 pm    Post subject: Reply with quote

For a start have you got A Join and Leave sub?

Also:

Quote:
how do i make it shut the f**k up in chat?

Answer - You should know this by now....
Define it...
e.g.
Code:
if (defined $chat) {<br /> if ($self eq $chat) {<br /> return;<br /> }<br />}


The bot would do nothing then... apart from invite and welcome people..

Quote:
How do i make the bot do a welcome message?

This is a tricky one...
You may wanna use sleep... the bot's doing it, BUT messaging before you're invited..

e.g.

Code:
elsif($msg =~ /^\!chat/)<br />  {<br />   if (!defined $chat) { <br />   $chat = $self;<br />   $chat->sendmsg("The chatroom is empty, this conversation is now the chatroom!",Font => "Tahoma",Color => '663300',Effect => "B");<br />   $chatters++;<br />   $self->sendmsg("Chat: $username has started chat. $chatters in room\n");<br />   open (DATA, ">>logs/chat.txt");<br />   print DATA "Room created by $username - " . localtime() . "\n\n";<br />   close(DATA);<br />   } else {<br />   $self->sendmsg("Please wait. You are being invited to the chatroom", "$username",Font => "Tahoma",Color => '999900',Effect => "B");<br />   $chat->send("CAL", "$victim"); <br />sleep(3);<br />$chat->sendmsg("Welcome to the chatroom!");<br />          }


edit: added tags
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 



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