From a00c15445352d1f9ab0341fcce9544a7651f2b95 Mon Sep 17 00:00:00 2001 From: Gjum Date: Thu, 7 Jan 2016 23:16:23 +0100 Subject: [PATCH] fixup! Add enchant_item, set_item_name, select_trade to interact plugin Closes Gjum/Bat#5 --- spockbot/plugins/helpers/interact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spockbot/plugins/helpers/interact.py b/spockbot/plugins/helpers/interact.py index 12e2b70..ff3cc4a 100644 --- a/spockbot/plugins/helpers/interact.py +++ b/spockbot/plugins/helpers/interact.py @@ -260,7 +260,8 @@ def select_trade(self, index): raise ValueError('Can only select trade in villager window, ' 'but open window is "%s"' % inv_type) - self.channels.send('MC|ItemName', int(index)) + # TODO check index against available trades + self.channels.send('MC|TrSel', int(index)) def write_book(self, text, author="", title="", sign=False): """Write text to the current book in hand, optionally sign the book"""