From 9dc9d866ac32ad2d3975077e99b577bcdb5054f5 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 31 Aug 2017 09:40:57 -0400 Subject: [PATCH] add color command Allow room managers to set the colors of rooms. Change-Id: I252d52db0cdf6c25e7c9be95c0debb49bd983cbd Signed-off-by: Doug Hellmann --- README.rst | 10 ++++++++++ html/ptg.html | 11 +++++++++-- ptgbot/bot.py | 2 ++ ptgbot/db.py | 6 +++++- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 756c578..383f3b0 100644 --- a/README.rst +++ b/README.rst @@ -21,6 +21,7 @@ You have to have voice in the channel (+v) to send commands to the ptgbot. Commands follow the following format:: #ROOMNAME [now|next] TOPIC + #ROOMNAME [color] CSS_COLOR_SPECIFIER Please note that: @@ -32,14 +33,23 @@ Please note that: wipes out any "next" entry for the same room. You might want to refresh those after entering a "now" topic. +* The color command only sets the background color for the room + name. The foreground is always white. Colors can be specified in any + form supported by the CSS attribute background-color. + Example:: #swift now discussing ring placement + #swift color blue #swift next at 2pm we plan to discuss #glance support #swift next around 3pm we plan to cover cold storage features ... #swift now discussing #glance support, come over! #swift next at 3pm we plan to cover cold storage features + ... + #oslo now discussing oslo.config drivers + #oslo color #42f4c5 + #oslo next after lunch we plan to discuss auto-generating config reference docs You can also remove all entries related to your room by issuing the following command:: diff --git a/html/ptg.html b/html/ptg.html index 3df9da6..4e5ea85 100644 --- a/html/ptg.html +++ b/html/ptg.html @@ -16,12 +16,19 @@