Add [] around $0
This commit is contained in:
parent
ad02585819
commit
b4157536bd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue