[+] Add test command
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user