User Control Panel
Advertisements

HELP US, HELP YOU!

Personal Reminders!

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
ugly.breath
Newbie
Newbie


Joined: 09 Mar 2005
Posts: 18

Reputation: 14.5

PostPosted: Sat Mar 12, 2005 6:05 am    Post subject: Reply with quote

I have made a simple code using perl: (ps i wrote this for MAYA coz it seems it doesnt have many commands and I love MAYA!!! Smile )

I think it will work in any bot if you add the command and the goto end stuff!! Plz don't be angry if it is way too simple or already done, it is my first command ever!! and I am learning perl as I code!!
Here is the code:

Write Personal Reminder:
Code:
<br />{<br />  open (DATA, ">>./Logs/Users/Notes/$username.txt");<br />  print DATA "$1 ... ";<br />  close(DATA); <br /> &send($self, "[NOTES] 27 You continued your notes with: '$1'");<br />}


Read Personal Reminder:
Code:
<br />{<br />      open (DATA, "./Logs/Users/Notes/$username.txt");<br />      @line = <DATA>;<br />      close(DATA);<br />      $self->sendmsg("7(#) Notes (#)\n\n27@line");  <br />}


Plz reply about improvements.

EDIT M4RTIN has just informed me that this code will work on most bots!!!
Back to top
M4RTIN
Member
Member


Joined: 31 Dec 2004
Posts: 134

Reputation: 19.2Reputation: 19.2

PostPosted: Sat Mar 12, 2005 7:56 am    Post subject: Reply with quote

Heh, Cool.

This would work on most bot's, Not just maya.

Good command being's its one of your first. Smile

But, I think its been done before.
Back to top
ugly.breath
Newbie
Newbie


Joined: 09 Mar 2005
Posts: 18

Reputation: 14.5

PostPosted: Sun Mar 13, 2005 5:55 am    Post subject: Reply with quote

Yea thanks!!! Did you notice that the site was down for a while?

btw it is my very first code not one of my first ones Wink

But thanks for the comment!!!
Back to top
M4RTIN
Member
Member


Joined: 31 Dec 2004
Posts: 134

Reputation: 19.2Reputation: 19.2

PostPosted: Sun Mar 13, 2005 7:05 am    Post subject: Reply with quote

Yeah, Yesturday the forum's datbase had a error in, or a piece of the forum's code was erroring.
Back to top
fusioncroc
Newbie
Newbie


Joined: 05 Feb 2005
Posts: 30
Location: England
Reputation: 15.8Reputation: 15.8

PostPosted: Sun Mar 13, 2005 8:17 am    Post subject: Reply with quote

Ugly.Breath That code looks pretty good Smile
Back to top
ugly.breath
Newbie
Newbie


Joined: 09 Mar 2005
Posts: 18

Reputation: 14.5

PostPosted: Mon Mar 21, 2005 8:34 am    Post subject: Reply with quote

Thanks Very Happy I'm making a new code but it isnt working. its a pm code and im stuck. check out the perl questions to see my article
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Mon Mar 21, 2005 3:36 pm    Post subject: Reply with quote

Remember that you need a sub name (or doesnt maya do that:S!)
also you need to recieve the varibles with other templates, im guessing you didnt do that with this because its in some kind of elsif, although there isnt a elseif statment...

i don't know maya, so im only takling for other templates but io would have thought it would need some kind of way to distiguish the codes
Back to top
ugly.breath
Newbie
Newbie


Joined: 09 Mar 2005
Posts: 18

Reputation: 14.5

PostPosted: Thu Sep 15, 2005 5:41 am    Post subject: I'm Back online wq00t Reply with quote

I had truble online for a while and my bot stopped production. Thanks for the feedback guys!!
Back to top
ScottyGN
Newbie
Newbie


Joined: 12 Feb 2006
Posts: 15

Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8

PostPosted: Mon Feb 20, 2006 12:54 am    Post subject: Reply with quote

i got error:
Code:
[20-2-2006/01:55:47] remind.maya produced the following error.

syntax error at (eval 30) line 1, near "<br />{"
syntax error at (eval 30) line 1, near "<br />  print"
syntax error at (eval 30) line 1, near "<br />  close"
Not enough arguments for send at (eval 30) line 1, near ""[NOTES] 27 You continued your notes with: '$1'")"
syntax error at (eval 30) line 1, near "<br />}"

anyone in for helping Question
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Feb 20, 2006 2:11 am    Post subject: Reply with quote

The <br /> was left over from when the forum was converted over. Turn all the <br /> into "enter's" and you should be all set.
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
ScottyGN
Newbie
Newbie


Joined: 12 Feb 2006
Posts: 15

Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8

PostPosted: Mon Feb 20, 2006 12:52 pm    Post subject: hehe Reply with quote

new feature: time, example: remind me I'm an asshole in 2 minutes
bot replies: okay, ill remind you that you are an asshole in 2 minutes
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands 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