Commit Graph

8 Commits

Author SHA1 Message Date
Tony Breeds f3060c0806 [iCal] Add an iCal file route.
Add a handler that converts the existing slot data into an ICS file.
This .ics file can be global ".../ptg.ics" or per track ".../ironic.ics"

Right now each block deafults to 60 minutes if there isn't a 'duration'
field in the slot entry.

Change-Id: I7a67ba777c004e57206976aca377fe3f41956db0
2023-09-25 11:58:42 +10:00
Ian Wienand 0e2f3d0a9d ptgbot-web: add simple service to serve static pages
This serves the static pages from the container directly

Change-Id: I86f3f5002f88005760e00c5714b0891c1892a6f2
2021-10-05 14:38:56 +11:00
Thierry Carrez 5f371d18d4 Add tests for PTGbot
Add tests for most commands in PTGbot, checking that they result in
the desired outcome.

With this patch all track commands are tested, as well as most admin
commands.

Change-Id: I0a9907da6946db224a9efd2c740f275dfad0f00e
2020-11-27 09:43:46 +01:00
Thierry Carrez 052b575a4f Pin irc module to 15.1.1 to avoid import error
ib3 triggers an irc.buffer import failure when used with
irc>=16. The fix is in[1], but was not released yet. In
the meantime, pin irc module to 15.1.1 to work around the
issue.

[1] 92da70155e

Change-Id: I6353185daa4a494d81ce519a2498639a4f973212
2018-12-21 15:35:09 +01:00
Thierry Carrez fad68b2b48 Identify with SASL
Identify through SASL using the convenient ib3 mixins, and
get rid of a bunch of special-case code in the process.

Change-Id: Ia1dfedec7a69a59773759e072acfe442e3976f99
2018-08-30 18:36:06 +02:00
Thierry Carrez 0ff1a65f6c Remove ethercalc support
In preparation for the fully IRC-driven system,
remove the code getting extra info from ethercalc.

Change-Id: I1a7092803630a790290205f0b202bc347c3f18c0
2017-12-04 13:08:51 +01:00
Jeremy Stanley cf7dd084a6 List requests as a requirement
Since the ptgbot.ethercalc module explicitly imports requests, track
it as a dependency.

Change-Id: Ib850ed18b365219c9293dfe723baa6da14ff4938
2017-07-12 22:48:13 +00:00
Thierry Carrez 2de3521d32 Initial commit
Basic bot skeleton, no functionality yet.
2017-04-18 14:21:26 +02:00