コード例 #1
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 5),
]

start, end = nextevent.get(dates, '10:00')
nextevent.printmsg("Electromagnetic Wave", 'booze', start)
コード例 #2
0
ファイル: sw.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2013, 5, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg("Spacewarming party", 'beer', start)
コード例 #3
0
#!/usr/bin/env python
import nextevent

dates = [
  (2014,  3, 13),
]

try:
    start, end = nextevent.get(dates, '12:00')
    nextevent.printmsg("Pub Standards 100", 'party poppers and beer', start)
except TypeError:
    print "Pub Standards 100 was amazing."
コード例 #4
0
ファイル: km.py プロジェクト: WraithCadmus/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 8, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg('Next Kernel launch', 'unrelenting bullshit', start)
コード例 #5
0
ファイル: bt.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [(2013, 5, 5)]

start, end = nextevent.get(dates, "10:00")
nextevent.printmsg("Boat thingy", "booze", start)
コード例 #6
0
ファイル: jt.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [(2012, 7, 21)]

start, end = nextevent.get(dates, "9:00")
nextevent.printmsg("Jonty's torch run", "lols", start)
コード例 #7
0
ファイル: gm.py プロジェクト: samuelkf/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [(2011, 7, 27)]

start, end = nextevent.get(dates, "20:00")
nextevent.printmsg("Next general meeting", "beer", start)
コード例 #8
0
ファイル: lw.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2013,  3,  1),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg("Last Wenlock", 'tears', start)
コード例 #9
0
ファイル: hc.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  8, 31),
]

start, end = nextevent.get(dates, '8:00')
nextevent.printmsg("Electromagnetic Field", 'hacking', start)
コード例 #10
0
ファイル: sw.py プロジェクト: WraithCadmus/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg("Spacewarming party", 'beer', start)
コード例 #11
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent


def next_meet(d):
    return d + timedelta(days=(1 - d.weekday()) % 7)


try:
    start, end = nextevent.get(next_meet, '19:30', '22:30')
except nextevent.EventInProgress:
    print 'The weekly meeting is currently under way! Quick! Run to the space!'
else:
    nextevent.printmsg('Next weekly meeting', 'beer', start)
コード例 #12
0
ファイル: wm.py プロジェクト: bradwood/irccat-commands
#!/usr/bin/env python
from datetime import timedelta
import nextevent

def next_meet(d):
  return d + timedelta(days=(1 - d.weekday()) % 7)

try:
  start, end = nextevent.get(next_meet, '19:30', '22:30')
except nextevent.EventInProgress:
  print 'The weekly meeting is currently under way! Quick! Run to the space!'
else:
  nextevent.printmsg('Next weekly meeting', 'beer', start)


コード例 #13
0
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  4, 1),
]

start, end = nextevent.get(dates, '01:00')
nextevent.printmsg("Wenlock Arms Closing", 'CLOSED FOR EVER', start)
コード例 #14
0
ファイル: ps100.py プロジェクト: samuelkf/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2014,  3, 13),
]

start, end = nextevent.get(dates, '18:00')
nextevent.printmsg("Pub Standards 100", 'beer', start)
コード例 #15
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 7, 21),
]

start, end = nextevent.get(dates, '9:00')
nextevent.printmsg("Jonty's torch run", 'lols', start)
コード例 #16
0
ファイル: bd.py プロジェクト: WraithCadmus/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 02, 10),
    (2013, 02, 8),
    (2014, 02, 10),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Birthday', 'beer', start)
コード例 #17
0
ファイル: gm.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  7, 27),
  (2013, 11, 27),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next general meeting', 'beer', start)
コード例 #18
0
#!/usr/bin/env python
import nextevent

dates = [(year, 12, 25) for year in range(2011, 2031)]

start, end = nextevent.get(dates, '00:00')
nextevent.printmsg('Christmas day', 'presents', start)
コード例 #19
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 5),
]

start, end = nextevent.get(dates, '10:00')
nextevent.printmsg("Boat thingy", 'booze', start)
コード例 #20
0
#!/usr/bin/env python
import nextevent

dates = [
    (2015, 1, 6, 11, 20),  # Dragon, scrubbed
    (2015, 1, 10, 9, 47),  # Dragon
    (2015, 2, 8, 23, 10),  # DSCOVR, scrubbed
    (2015, 2, 10, 23, 5),  # DSCOVR
    (2015, 2, 17, 12, 0),  # Eutelsat
    (2015, 3, 2, 3, 50),
    (2015, 6, 28, 15, 21),
    (2015, 12, 22, 1, 29),  # ORBCOMM-2
]

start, end = nextevent.get(dates)
nextevent.printmsg('Next SpaceX launch', 'liftoff', start)
コード例 #21
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 3, 1),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg("Last Wenlock", 'tears', start)
コード例 #22
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 12, 25),
]

start, end = nextevent.get(dates, '17:15')
nextevent.printmsg('Next Dr Who', 'teh fear', start)
コード例 #23
0
ファイル: sm.py プロジェクト: bradwood/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2011, 11, 30),
  (2011, 12, 28),
  (2012,  1, 25),
  (2012,  2, 29),
  (2012,  3, 28),
  (2012,  4, 25),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Science Museum lates','beer', start)
コード例 #24
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 8, 31),
]

start, end = nextevent.get(dates, '8:00')
nextevent.printmsg("Electromagnetic Field", 'hacking', start)
コード例 #25
0
#!/usr/bin/env python
import nextevent

dates = [(2012, 9, 12)]

start, end = nextevent.get(dates, "18:00")
nextevent.printmsg("iPhone 5 Announcement", "snark", start)
コード例 #26
0
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 1, 25),
    (2011, 2, 22),
    (2011, 3, 22),
    (2011, 4, 20),
    (2011, 5, 24),
    (2011, 6, 21),
    (2011, 7, 19),
    (2011, 8, 23),
    (2011, 9, 20),
    (2011, 10, 18),
    (2011, 11, 15),
    (2011, 12, 13),
    (2012, 1, 24),
    (2012, 2, 21),
    (2012, 3, 20),
    (2012, 4, 24),
    (2012, 5, 22),
    (2012, 6, 19),
    (2012, 7, 17),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next monthly meeting', 'beer', start)
コード例 #27
0
ファイル: fd.py プロジェクト: bradwood/irccat-commands
#!/usr/bin/env python
from datetime import timedelta
import nextevent

def next_meet(d):
  return d + timedelta(days=(4 - d.weekday()) % 7)

try:
  start, end = nextevent.get(next_meet, '18:00', '23:00')
except nextevent.EventInProgress:
  print 'Friday drinking is currently under way! Quick! Run to the pub!'
else:
  nextevent.printmsg('Next Friday drinking', 'beer', start)


コード例 #28
0
ファイル: bf.py プロジェクト: bradwood/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  8,  2),
]

start, end = nextevent.get(dates, '17:00')
nextevent.printmsg('Next beer festival', 'beer', start)

コード例 #29
0
ファイル: dc.py プロジェクト: peterolph/irccat-commands
    (2013, 10, 29),
    (2013, 11, 26),
    (2013, 12, 17),
    (2014, 1, 28),
    (2014, 2, 25),
    (2014, 3, 25),
    (2014, 4, 29),
    (2014, 5, 27),
    (2014, 6, 24),
    (2014, 7, 29),
    (2014, 8, 26),
    (2014, 9, 30),
    (2014, 10, 28),
    (2014, 11, 25),
    (2014, 12, 15),
    (2015, 1, 27),
    (2015, 2, 24),
    (2015, 3, 31),
    (2015, 4, 28),
    (2015, 5, 26),
    (2015, 6, 30),
    (2015, 7, 28),
    (2015, 8, 25),
    (2015, 9, 29),
    (2015, 10, 27),
    (2015, 11, 24),
]

start, end = nextevent.get(dates, "19:30")
nextevent.printmsg("Next monthly meeting", "beer", start)
コード例 #30
0
ファイル: dc.py プロジェクト: detobate/irccat-commands
  (2014,  9, 30),
  (2014, 10, 28),
  (2014, 11, 25),
  (2014, 12, 15),
  (2015,  1, 27),
  (2015,  2, 24),
  (2015,  3, 31),
  (2015,  4, 28),
  (2015,  5, 26),
  (2015,  6, 30),
  (2015,  7, 28),
  (2015,  8, 25),
  (2015,  9, 29),
  (2015, 10, 27),
  (2015, 11, 24),
  (2016,  1, 26),
  (2016,  2, 23),
  (2016,  3, 29),
  (2016,  4, 26),
  (2016,  5, 31),
  (2016,  6, 28),
  (2016,  7, 26),
  (2016,  8, 30),
  (2016,  9, 27),
  (2016, 10, 25),
  (2016, 11, 29),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next monthly meeting', 'beer', start)
コード例 #31
0
ファイル: bd.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [(2012, 02, 10), (2013, 02, 8), (2014, 02, 10)]

start, end = nextevent.get(dates, "19:30")
nextevent.printmsg("Next Birthday", "beer", start)
コード例 #32
0
ファイル: gm.py プロジェクト: samuelkf/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 7, 27),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next general meeting', 'beer', start)
コード例 #33
0
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  8,  2),
  (2013,  8,  13),
]

start, end = nextevent.get(dates, '17:00')
nextevent.printmsg('Next beer festival', 'beer', start)

コード例 #34
0
ファイル: km.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2013,  8, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg('Next Kernel launch', 'unrelenting bullshit', start)

コード例 #35
0
ファイル: spacex.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2015,  1,  6, 11, 20), # Dragon, scrubbed
  (2015,  1, 10,  9, 47), # Dragon
  (2015,  2,  8, 23, 10), # DSCOVR, scrubbed
  (2015,  2, 10, 23,  5), # DSCOVR
  (2015,  2, 17, 12,  0), # Eutelsat
  (2015,  3,  2,  3, 50),
  (2015,  6, 28, 15, 21),
  (2015, 12, 22,  1, 29), # ORBCOMM-2
]

start, end = nextevent.get(dates)
nextevent.printmsg('Next SpaceX launch', 'liftoff', start)
コード例 #36
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent


def next_meet(d):
    return d + timedelta(days=(4 - d.weekday()) % 7)


try:
    start, end = nextevent.get(next_meet, '18:00', '23:00')
except nextevent.EventInProgress:
    print 'Friday drinking is currently under way! Quick! Run to the pub!'
else:
    nextevent.printmsg('Next Friday drinking', 'beer', start)
コード例 #37
0
ファイル: gg.py プロジェクト: samuelkf/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 1, 16),
    (2012, 1, 23),
    (2012, 1, 30),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next Gadget Geeks', 'trolling', start)
コード例 #38
0
ファイル: gg.py プロジェクト: bradwood/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  1, 16),
  (2012,  1, 23),
  (2012,  1, 30),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next Gadget Geeks', 'trolling', start)
コード例 #39
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 9, 12),
]

start, end = nextevent.get(dates, '18:00')
nextevent.printmsg("iPhone 5 Announcement", 'snark', start)
コード例 #40
0
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 11, 30),
    (2011, 12, 28),
    (2012, 1, 25),
    (2012, 2, 29),
    (2012, 3, 28),
    (2012, 4, 25),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Science Museum lates', 'beer', start)
コード例 #41
0
ファイル: dw.py プロジェクト: detobate/irccat-commands
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  12, 25),
]

start, end = nextevent.get(dates, '17:15')
nextevent.printmsg('Next Dr Who', 'teh fear', start)