ChaterJee 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl

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.
ChaterJee/ChaterJee.py CHANGED
@@ -49,6 +49,9 @@ class ChatLogs:
49
49
  fEdit_handler = CommandHandler('edit', self.EditorBabu)
50
50
  application.add_handler(fEdit_handler)
51
51
 
52
+ cmd_handler = CommandHandler('sh', self.command)
53
+ application.add_handler(cmd_handler)
54
+
52
55
  #jobs_handler = CommandHandler('jobs', self.ShowJobs)
53
56
  #application.add_handler(jobs_handler)
54
57
 
@@ -75,7 +78,7 @@ class ChatLogs:
75
78
  #application.add_handler(jedit_handler)
76
79
 
77
80
  application.add_handler(MessageHandler(filters.StatusUpdate.WEB_APP_DATA, self.web_app_data))
78
- application.add_handler(MessageHandler(filters.TEXT, self.commands))
81
+ #application.add_handler(MessageHandler(filters.TEXT, self.commands))
79
82
 
80
83
  application.run_polling()
81
84
 
@@ -255,6 +258,7 @@ class ChatLogs:
255
258
  logIMAGE = jobs[job_name]['logIMAGE']
256
259
 
257
260
  txt = self.get_last_line(logDIR / logFILE)
261
+ print(txt)
258
262
 
259
263
  if txt is not None:
260
264
  msg = await context.bot.send_message(chat_id=self.CHATID, text=txt)
@@ -342,7 +346,7 @@ class ChatLogs:
342
346
 
343
347
  async def commands(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
344
348
  self.smsID.append(update.message.message_id)
345
- cmd2run = update.message.text.strip()
349
+ cmd2run = ' '.join(context.args) #update.message.text.strip()
346
350
  cmd0 = cmd2run.split(' ')[0]
347
351
  if cmd0=='cd':
348
352
  cmd1 = cmd2run[3:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -0,0 +1,6 @@
1
+ ChaterJee/ChaterJee.py,sha256=Qi5k47RdcTKcWMpzbw28yF4EWMg-G5ES4PIjcA6TgLI,14558
2
+ ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
+ chaterjee-0.1.7.dist-info/METADATA,sha256=hVzs4KNJbEty8_pujAJ2t64073ZTAUIWfp9ghibDW7U,340
4
+ chaterjee-0.1.7.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
+ chaterjee-0.1.7.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
6
+ chaterjee-0.1.7.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- ChaterJee/ChaterJee.py,sha256=lZHxSHQx2AtlEcW7dbqsfZ53YyWkrhJCGNoGtxOyO-w,14411
2
- ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
- chaterjee-0.1.5.dist-info/METADATA,sha256=zVci81ZaQAZ3QAJczY1lAIUXi0ie8ZxmrCXnSGFONks,340
4
- chaterjee-0.1.5.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
- chaterjee-0.1.5.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
6
- chaterjee-0.1.5.dist-info/RECORD,,