def write_book(self, text, author="", title="", sign=False):
        """Write text to the current book in hand, optionally sign the book"""
        book = self._setup_book()
        if book is None:
            return False
        pages = (text[0+i:constants.BOOK_CHARS_PER_PAGE+i]
                 for i in range(0, len(text), constants.BOOK_CHARS_PER_PAGE))
        self.edit_book(pages)
        if sign:
            self.sign_book(author, title)
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py/InteractPlugin.write_book/original