Open binooetomo opened 5 years ago
I think you can create thread in run.py that reload saved contacts periodically, so it not run on modules. look some example from here: https://github.com/danielcardeenas/whatsapp-framework/issues/129#issuecomment-383620073
Dear All.
Actualy I have 2 question, but I post it different issue. This is the second
I learn run.py. In MacStack.init , there is : self.stack.setProp(MacLayer.PROP_CONTACTS, list(config.contacts.keys()))
I think that part is work based on what in config.contacts. def rebuildcontacts(self): self.stack.setProp(MacLayer.PROP_CONTACTS, list(config.contacts.keys()))
My module is :
add number:name to config.contacts ... currently it's success, but I remember I failed before 'NameError: name 'config' is not defined'. I did not change anything but it work.
call c.rebuidcontacts : this one get 'NameError: name 'c' is not defined'
Looks like everything defined in run.py is not available to modules.
sincerely -bino-