Commit Graph

9 Commits

Author SHA1 Message Date
Thierry Carrez ab85e55d74 Adapt PTGBot to OFTC
PTGBot was relying on a number of Freenode things and requires a
few changes to run on OFTC:

- Manually identify to NickServ instead of using SASL
- No longer use identify-msg capability
- Messages received are no longer prefixed by '+'

Change-Id: Ib014f58475c1eee89d34e718ee5988800602586b
2021-05-31 15:38:52 +02:00
Adam Spiers f07cbb0bee Switch example IRC port to 6697
6667 doesn't work since SASL was introduced.

Change-Id: I3758ad5e8059e51b493066a32d8ac4e6b65e2a0e
2019-04-26 18:27:19 +01:00
Thierry Carrez 42451c744b Load base schedule dynamically
The base schedule was specified in the bot configuration file,
which made it a bit painful to do last-minute configuration.

The bot shall load a basic minimal database and support being
configured online instead, using commands and json imports.

This change removes the schedule loading from configuration,
and replaces it with a function to update the database using
a provided JSON URL (the ~fetchdb admin command).

Change-Id: I4e7a79baf88cce8d827eb66b1b0c26584c62c8d7
2018-11-26 13:38:26 +01:00
Thierry Carrez 21d77e09f8 Handle all schedule in a single table
The bookable rooms functionality was bolted on top of the "normal"
schedule table using a separate table in the JSON and the config.

Now that bookable rooms are shown together with "regular" rooms,
we can merge the two concept and pay back that technical debt.

This is an incompatible JSON change so the database will have to
be ~reload-ed from configuration.

Change-Id: Ia37b6202b363614418b562b693b3dd807621aa97
2018-10-04 16:06:05 +02:00
Thierry Carrez e9e50b0b1b Add scheduled / additional rooms
Allow to configure a schedule for scheduled rooms and
a number of available time slots in additional rooms.

Change-Id: Ibb4650cc73c08dc5c4328a8a844ed54fac991f84
2017-12-20 15:53:07 +01:00
Thierry Carrez 2ddba00d6d Specify and load event schedule
In order to be able to specify topic/room assignments, we need
a map of the available time slots. Specify that at the config
level.

Change-Id: I58e3d13e169a66c10e74ec9faa97243a40f14ee0
2017-12-20 15:50:03 +01: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
Thierry Carrez a6fde630ba Facilitate Ethercalc cells specification
Rather than have to list every Ethercalc cell (and add comments
to every such cell to indicate room/time), describe the shape
of the ethercalc and automate retrieval of information.

Change-Id: I6939a1a7c5706d6f67b03b07ed11d9daf8c297c9
2017-06-29 16:46:16 +02:00
Thierry Carrez 39e17d012c Move config to a JSON file
Move config to a JSON file in order to allow for complex
configuration of the ethercalc data model.

Change-Id: I0d18bc6aa3fd8ea1739c64a3d488145435bebb4f
2017-06-29 16:45:56 +02:00