1. def __OnClickCleverTextOnButton(self):
  2. if constInfo.CleverBot == 0:
  3. chat.AppendChat(chat.CHAT_TYPE_INFO, "CleverBot Activated")
  4. constInfo.CleverBot = 1
  5. else: chat.AppendChat(chat.CHAT_TYPE_INFO, "CleverBot already active")
  6. def __OnClickCleverTextOffButton(self):
  7. if constInfo.CleverBot == 1:
  8. chat.AppendChat(chat.CHAT_TYPE_INFO, "CleverBot Disabled")
  9. constInfo.CleverBot = 0
  10. else: chat.AppendChat(chat.CHAT_TYPE_INFO, "CleverBot already disable")
Comments powered by Disqus