| View previous topic :: View next topic |
| Author |
Message |
Mogour Voice
Joined: 10 Feb 2008 Posts: 17
|
Posted: Tue Mar 11, 2008 3:26 pm Post subject: Calendar |
|
|
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:
| Quote: |
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. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Mar 11, 2008 7:01 pm Post subject: |
|
|
| Look for "date" in the archive. |
|
| Back to top |
|
 |
Mogour Voice
Joined: 10 Feb 2008 Posts: 17
|
Posted: Tue Mar 11, 2008 7:35 pm Post subject: |
|
|
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)? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Mar 11, 2008 11:39 pm Post subject: |
|
|
| Too much work for me. |
|
| Back to top |
|
 |
Mogour Voice
Joined: 10 Feb 2008 Posts: 17
|
Posted: Thu Mar 13, 2008 10:43 am Post subject: |
|
|
| Hmm, maybe you can tell me what I have to change? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Mar 13, 2008 2:33 pm Post subject: |
|
|
| pretty much the entire script, since the date format is hard-coded through-out. |
|
| Back to top |
|
 |
Mogour Voice
Joined: 10 Feb 2008 Posts: 17
|
Posted: Thu Mar 13, 2008 2:48 pm Post subject: |
|
|
| Okay, thanks nevertheless |
|
| Back to top |
|
 |
|