This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Calendar

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
M
Mogour
Voice
Posts: 17
Joined: Sun Feb 10, 2008 12:58 pm

Calendar

Post by Mogour »

I already searched the TCL archive, but I found nothing.

I need a "calendar-script".

All OPs can add new entries with !calendar add <date (DD.MM.YYYY)> <text> and remove them with !calendar del <date>.
All normal users can read today's entry with !calendar or the entry for a specific date with !calendar <date>.

Also, if someone joins the channel, the bot should notice him today's entry (only if a entry was added).

Example:
User: !calendar add 12.03.2008 Just a little test
Bot: You don't have enough rights to do that
OP: !calendar add 12.03.2008 Just a little test
Bot: New entry for the 12. March 2008 added.
User: !calendar
Bot: No entry for today's date.
User: !calendar 12.03.2008
Bot: Entry for the 12. March 2008 by OP:
Bot: Just a little test
OP2: !calendar del 12.03.2008
Bot: Entry for the 12. March 2008 deleted
I hope someone can help me with that.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Look for "date" in the archive.
M
Mogour
Voice
Posts: 17
Joined: Sun Feb 10, 2008 12:58 pm

Post by Mogour »

Ah, thanks :).

I found something!


EDIT:

I'm using your script now and i was wondering if I can change the date format to the european date (Day. Month. Year)?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Too much work for me.
M
Mogour
Voice
Posts: 17
Joined: Sun Feb 10, 2008 12:58 pm

Post by Mogour »

Hmm, maybe you can tell me what I have to change?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

pretty much the entire script, since the date format is hard-coded through-out.
M
Mogour
Voice
Posts: 17
Joined: Sun Feb 10, 2008 12:58 pm

Post by Mogour »

Okay, thanks nevertheless
Post Reply