Allow bot names 1-9 instead of 1-3

This commit is contained in:
Tanner committed 2026-11-19 17:23:42 +00:00
1 parent fb28fefc8a
commit 1dd02f887c
9 files changed
+75 -48

No files matched your search

+7
View File
@@ -41,6 +41,13 @@ class TestInventoryCommands(unittest.TestCase):
self.commands.handle_chat(('CHAT', 'tester', 'mosfet1: 1drop'))
self.assertEqual(self.chat.sent, ['ok'])
def test_command_prefix_uses_the_ninth_bot_number(self):
self.commands.g.name = 'mosfet9'
self.commands.handle_chat(('CHAT', 'tester', 'mosfet9: 9drop'))
self.assertEqual(self.chat.sent, ['ok'])
def test_dump_command_starts_dump_for_item_id(self):
self.commands.handle_chat(('CHAT', 'tester', 'mosfet1: 1dump 62'))
self.assertEqual(self.game.dump_item, 62)