def main(bot, author_id, message, thread_id, thread_type, **kwargs): message = bot.fetchThreadMessages(thread_id=thread_id, limit=2)[1] vaped_message = vapor.vapor(message.text) bot.sendMessage(f"「{vaped_message}」", thread_id=thread_id, thread_type=thread_type)
def onNicknameChange(self, mid, author_id, changed_for, new_nickname, thread_id, thread_type, ts, metadata, msg): self.changeNickname(vapor(new_nickname), user_id=changed_for, thread_id=thread_id, thread_type=thread_type)
def main(bot, author_id, message, thread_id, thread_type, **kwargs): message = bot.fetchThreadMessages(thread_id=thread_id, limit=2)[1] bot.sendMessage(vapor.vapor(message.text), thread_id=thread_id, thread_type=thread_type)