diff options
| author | 2018-09-01 10:37:09 +0100 | |
|---|---|---|
| committer | 2018-09-01 10:37:09 +0100 | |
| commit | c284608cbdcbd4f402e21d3650c160a4116e46a6 (patch) | |
| tree | 522cc09b34bc95a72176037003ffa68829d23c71 | |
| parent | Remove superfluous code from ducks.py and introduce dice.py (DND rolling func... (diff) | |
Formatting request (#14)
* Add Database.UserChannelSettings.find_all_by_setting
* Turns out we didn't need find_all_by_setting
* Actually, we do need find_all_by_setting
* Table name typo
* Add Utils.bold and Utils.underline
| -rw-r--r-- | Utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -123,6 +123,12 @@ def color(foreground, background=None): return "%s%s%s" % (FONT_COLOR, foreground, "" if not background else ",%s" % background) +def bold(s): + return "%s%s%s" % (FONT_BOLD, s, FONT_BOLD) + +def underline(s): + return "%s%s%s" % (FONT_UNDERLINE, s, FONT_UNDERLINE) + TIME_SECOND = 1 TIME_MINUTE = TIME_SECOND*60 TIME_HOUR = TIME_MINUTE*60 |
