From b4157536bdf48602030e01e9a74a4f3121fe2636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 11 May 2019 20:34:15 +0300 Subject: [PATCH] Add [] around $0 --- gameloop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index 4725496..d416522 100644 --- a/gameloop.py +++ b/gameloop.py @@ -2,6 +2,9 @@ import enum import random from collections import namedtuple +# TODO: !redeal +# TODO: offtopia-norandom preset + import cardcast_api class events(enum.Enum): @@ -638,7 +641,7 @@ def game(send, notice, voice, devoice, get_event): index = int(char) if 0 <= index < len(responses): - r.append(responses[index]) + r.append('[' + responses[index] + ']') else: # Not valid backreference, copy verbatim r.append('$' + char)