Python Forum
File Watcher and File modifying chatbot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Watcher and File modifying chatbot
#1
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.
Reply
#2
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  file open "file not found error" shanoger 8 1,087 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Need to replace a string with a file (HTML file) tester_V 1 761 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  How can I change the uuid name of a file to his original file? MaddoxMB 2 921 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,091 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,112 Dec-15-2022, 04:32 PM
Last Post: Larz60+
Photo Making Zip file of a file and Directory Nasir 2 1,018 Oct-07-2022, 02:01 PM
Last Post: Nasir
  Need Help: Convert .pcl file to .pdf file ManuRaval 6 2,541 Sep-13-2022, 01:31 PM
Last Post: ManuRaval
  filter every 24 days file (considering file name) RolanRoll 5 2,211 Jun-23-2022, 11:41 AM
Last Post: RolanRoll
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,655 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  How to split file by same values from column from imported CSV file? Paqqno 5 2,775 Mar-24-2022, 05:25 PM
Last Post: Paqqno

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020