[+] Add test command

This commit is contained in:
Hykilpikonna
2020-11-22 15:20:45 -05:00
parent ba4fac3e34
commit 6105e39821
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ if __name__ == '__main__':
dispatcher = updater.dispatcher
# Register commands
commands = [start, ls, touch, rm, nano, interval, enable, disable]
commands = [start, ls, touch, rm, nano, test, interval, enable, disable]
[dispatcher.add_handler(createCommand(cmd)) for cmd in commands]
# Start bot
+1
View File
@@ -3,6 +3,7 @@ ls - List the http requests you've created
touch - Create a http request
rm - Delete a http request
nano - Edit a http request
test - Test a http request
interval - Change the interval between the updates of a http request
enable - Start listening to a http request
disable - Stop listening to a http request
+6 -1
View File
@@ -13,10 +13,10 @@ Welcome! This bot monitors http changes!
/ls - List the http requests you've created
/touch - Create a http request
/rm - Delete a http request
/mv - Rename a http request
*Configuration Commands*
/nano - Edit a http request
/test - Test a http request
/interval - Change the interval between the updates of a http request
*Start/Stop Commands*
@@ -107,6 +107,11 @@ def nano(update, context):
user = database.checkUser(chat.id)
def test(update, context):
chat = update.effective_chat
user = database.checkUser(chat.id)
def interval(update, context):
chat = update.effective_chat
user = database.checkUser(chat.id)