[+] Add test command
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ if __name__ == '__main__':
|
|||||||
dispatcher = updater.dispatcher
|
dispatcher = updater.dispatcher
|
||||||
|
|
||||||
# Register commands
|
# 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]
|
[dispatcher.add_handler(createCommand(cmd)) for cmd in commands]
|
||||||
|
|
||||||
# Start bot
|
# Start bot
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ ls - List the http requests you've created
|
|||||||
touch - Create a http request
|
touch - Create a http request
|
||||||
rm - Delete a http request
|
rm - Delete a http request
|
||||||
nano - Edit a http request
|
nano - Edit a http request
|
||||||
|
test - Test a http request
|
||||||
interval - Change the interval between the updates of a http request
|
interval - Change the interval between the updates of a http request
|
||||||
enable - Start listening to a http request
|
enable - Start listening to a http request
|
||||||
disable - Stop 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
|
/ls - List the http requests you've created
|
||||||
/touch - Create a http request
|
/touch - Create a http request
|
||||||
/rm - Delete a http request
|
/rm - Delete a http request
|
||||||
/mv - Rename a http request
|
|
||||||
|
|
||||||
*Configuration Commands*
|
*Configuration Commands*
|
||||||
/nano - Edit a http request
|
/nano - Edit a http request
|
||||||
|
/test - Test a http request
|
||||||
/interval - Change the interval between the updates of a http request
|
/interval - Change the interval between the updates of a http request
|
||||||
|
|
||||||
*Start/Stop Commands*
|
*Start/Stop Commands*
|
||||||
@@ -107,6 +107,11 @@ def nano(update, context):
|
|||||||
user = database.checkUser(chat.id)
|
user = database.checkUser(chat.id)
|
||||||
|
|
||||||
|
|
||||||
|
def test(update, context):
|
||||||
|
chat = update.effective_chat
|
||||||
|
user = database.checkUser(chat.id)
|
||||||
|
|
||||||
|
|
||||||
def interval(update, context):
|
def interval(update, context):
|
||||||
chat = update.effective_chat
|
chat = update.effective_chat
|
||||||
user = database.checkUser(chat.id)
|
user = database.checkUser(chat.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user