ChaterJee 0.1.5__tar.gz → 0.1.7__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.
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee/ChaterJee.py +6 -2
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee.egg-info/PKG-INFO +1 -1
- {chaterjee-0.1.5 → chaterjee-0.1.7}/PKG-INFO +1 -1
- {chaterjee-0.1.5 → chaterjee-0.1.7}/setup.py +1 -1
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee/__init__.py +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee.egg-info/SOURCES.txt +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee.egg-info/dependency_links.txt +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee.egg-info/requires.txt +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/ChaterJee.egg-info/top_level.txt +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/README.md +0 -0
- {chaterjee-0.1.5 → chaterjee-0.1.7}/setup.cfg +0 -0
@@ -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:]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|