User Control Panel
Advertisements

HELP US, HELP YOU!

System Messages!

 
Post new topic   Reply to topic    Bot Depot Forum Index -> General Chat & Discussion
View unanswered posts
Author Message
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Mon Feb 23, 2004 3:08 am    Post subject: Reply with quote

Okay, this would be really cool. How about this: The bot would check if the user has any "system messages" and then put it after the normal bot response (in another color, maybe red):

Quote:
thebotsusername:
Yes, I agree!

[SYSTEM MESSAGE: You have been promoted from a Moderator to a Super-Moderator.] Type /confirm to confirm that you have seen this notice.


Just a thought, but you could type /confirm to confirm that you've read the system message, then it would stop showing up after every message.

The way that this could work is it'd open a ".txt" file for the user, then print the system message into it (whenever you wanted to put a system message for the user... like if you were promoting/demoting them, or whatever ... maybe if you have new Bot-Mail, it all would depend on your bot). /confirm would delete that .txt file..

I know you could always just have the bot send one message, but this is much more interesting and fun, haha. Laughing
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Feb 23, 2004 2:02 pm    Post subject: Reply with quote

I can help with the /confirm command.

Code:
sub confirm {<br />   # <get whatever from the shift here><br /><br />   # See if they have any messages.<br />   if (-e "./messages/$user.txt" == 1) {<br />      # Delete the file.<br />      unlink ("./messages/$user.txt");<br />      return "Your system messages have been erased.";<br />   }<br />   else {<br />      return "You do not have any messages.";<br />   }<br />}<br />1;


That's the basic idea, unlink(FILE) is the delete command, you should be able to go from there.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Mon Feb 23, 2004 11:25 pm    Post subject: Reply with quote

Yup, hehe. It was just an idea, if I created it, I wouldn't really have any use for it... I don't have a bot hierarchy other than just admins and other users. Wink Maybe I'll add one in though. I'm thinking of creating a new bot.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> General Chat & Discussion 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