ChaterJee 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -245,6 +245,8 @@ class ChatLogs:
245
245
  self.txt='path not found'
246
246
  elif cmd0=='clear':
247
247
  self.txt="This clears the terminal screen!\nTo clear telegram screen type /clear"
248
+ elif cmd0=='pkill':
249
+ self.txt="pkill cannot be called."
248
250
  else:
249
251
  print('command: ',cmd2run)
250
252
  cmd=cmd2run
@@ -313,9 +315,14 @@ class NoteLogs:
313
315
  self.save_job_JSON()
314
316
 
315
317
  def save_job_JSON(self):
316
- jobs_file = self.home / ".data" / "JOB_status.json"
317
- with open(jobs_file, 'r') as ffr:
318
- jobs = json.load(ffr)
318
+ _data = self.home / ".data"
319
+ _data.mkdir(exist_ok=True)
320
+ jobs_file = _data / "JOB_status.json"
321
+ try:
322
+ with open(jobs_file, 'r') as ffr:
323
+ jobs = json.load(ffr)
324
+ except FileNotFoundError:
325
+ jobs = {}
319
326
  jobs[self.jobNAME] = {\
320
327
  "logDIR": self.logDIR, \
321
328
  "logFILE": self.logFILE, \
@@ -0,0 +1,8 @@
1
+ import ChaterJee
2
+
3
+ if __name__ == '__main__':
4
+ TOKEN = '1711613332:AAHzf0GMQPjnBINOfIhfbK9dmIUo7mHiThw'
5
+ CHATID = '1651529355'
6
+
7
+ cbot = ChaterJee.ChatLogs(TOKEN, CHATID)
8
+ cbot.cmdTRIGGER()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -2,6 +2,7 @@ README.md
2
2
  setup.py
3
3
  ChaterJee/ChaterJee.py
4
4
  ChaterJee/__init__.py
5
+ ChaterJee/updater.py
5
6
  ChaterJee.egg-info/PKG-INFO
6
7
  ChaterJee.egg-info/SOURCES.txt
7
8
  ChaterJee.egg-info/dependency_links.txt
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ChaterJee',
5
- version='0.2.0',
5
+ version='0.2.2',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  'python-telegram-bot==20.7',
File without changes
File without changes