Python Forum

Full Version: File Watcher and File modifying chatbot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a python code that generates a .txt file whenever one of my Informatica job fails.

I would like to develop a chatbot in python that would pop up whenever a file is generated in a location and show the contents of the file to the user in the chat window. So the file content would be something like below.

1) wf_insert_upd_fact_tbl failed 2018-09-16 06:02:00

The bot should then wait for user response. If the user responds restart wf_insert_upd_fact_tbl, the bot should create another .txt file with the instructions which would then be picked up by another py script and the failed job would be restarted. So basically my requirement is as below.
  • Bot should pop up when a .txt file is generated (wait for the event)
  • Bot should print out the contents of the file into the chat window.
  • It should take user response and create separate .txt file with whatever the user has responded.

Can this be done using ChatterBot library. Do we need to use logic adapters to make the bot do tasks.
(Sep-17-2018, 09:37 AM)sreevik Wrote: [ -> ]Can this be done using ChatterBot library.
You're probably not likely to get the answer to this that you expect - this is a small forum and we don't necessarily know about all the random modules out there; if you do get an answer to this, it would more likely be because someone went and read the docs for you than that they already knew when they read your post.

(Sep-17-2018, 09:37 AM)sreevik Wrote: [ -> ]Do we need to use logic adapters to make the bot do tasks.
Similarly, we probably lack the necessary context to answer this question.