mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
Update command style
This commit is contained in:
16
baraban.py
16
baraban.py
@@ -71,7 +71,7 @@ def echo(bot):
|
|||||||
s = update.message.text.split()
|
s = update.message.text.split()
|
||||||
except:
|
except:
|
||||||
s = "empty"
|
s = "empty"
|
||||||
if s[0] == 'resolve':
|
if s[0] == '/resolve':
|
||||||
#msg = "usr: " + \
|
#msg = "usr: " + \
|
||||||
# s[1] + " pass: " + \
|
# s[1] + " pass: " + \
|
||||||
# s[2] + " subj: " + \
|
# s[2] + " subj: " + \
|
||||||
@@ -80,7 +80,7 @@ def echo(bot):
|
|||||||
# s[5] + " commit: " + s[6]
|
# s[5] + " commit: " + s[6]
|
||||||
if len(s) != 7:
|
if len(s) != 7:
|
||||||
update.message.reply_markdown("Missing operand... Try again")
|
update.message.reply_markdown("Missing operand... Try again")
|
||||||
update.message.reply_markdown("Usage: resolve *<user[text]> "\
|
update.message.reply_markdown("Usage: */resolve <user[text]> "\
|
||||||
"<pass[text]> <subj[int]> <test[int]> "\
|
"<pass[text]> <subj[int]> <test[int]> "\
|
||||||
"<accuracy[0-100]> <commit[1/0]>*")
|
"<accuracy[0-100]> <commit[1/0]>*")
|
||||||
return False
|
return False
|
||||||
@@ -97,17 +97,17 @@ def echo(bot):
|
|||||||
perdoliq(s[1], s[2], s[3], s[4], s[5], s[6])
|
perdoliq(s[1], s[2], s[3], s[4], s[5], s[6])
|
||||||
update.message.reply_text("It's done. Check your test because "\
|
update.message.reply_text("It's done. Check your test because "\
|
||||||
"i disclaim any responsibility.")
|
"i disclaim any responsibility.")
|
||||||
elif s[0] == 'list':
|
elif s[0] == '/list':
|
||||||
try:
|
try:
|
||||||
if len(s) == 3:
|
if len(s) == 3:
|
||||||
update.message.reply_text("Fetching tests...")
|
update.message.reply_text("Fetching tests...")
|
||||||
tests = list_test(s[1], s[2])
|
tests = list_test(s[1], s[2])
|
||||||
else:
|
else:
|
||||||
update.message.reply_markdown("Usage: *list <user[text]>"\
|
update.message.reply_markdown("Usage: */list <user[text]>"\
|
||||||
" <pass[text]>*")
|
" <pass[text]>*")
|
||||||
return False
|
return False
|
||||||
except:
|
except:
|
||||||
update.message.reply_markdown("Usage: *list <user[text]>"\
|
update.message.reply_markdown("Usage: */list <user[text]>"\
|
||||||
" <pass[text]>*")
|
" <pass[text]>*")
|
||||||
return False
|
return False
|
||||||
msg = "Here is an available tests:\n``` "
|
msg = "Here is an available tests:\n``` "
|
||||||
@@ -122,11 +122,11 @@ def echo(bot):
|
|||||||
update.message.reply_markdown(msg + "```\n Pay attention to "\
|
update.message.reply_markdown(msg + "```\n Pay attention to "\
|
||||||
"numbers in brackets \[..] *Here is subj and test numbers*")
|
"numbers in brackets \[..] *Here is subj and test numbers*")
|
||||||
else:
|
else:
|
||||||
update.message.reply_markdown("Possible commands: resolve, list.")
|
update.message.reply_markdown("Possible commands: */resolve, /list*")
|
||||||
update.message.reply_markdown("Usage: resolve *<user[text]> "\
|
update.message.reply_markdown("Usage: */resolve <user[text]> "\
|
||||||
"<pass[text]> <subj[int]> <test[int]> "\
|
"<pass[text]> <subj[int]> <test[int]> "\
|
||||||
"<accuracy[0-100]> <commit[1/0]>*")
|
"<accuracy[0-100]> <commit[1/0]>*")
|
||||||
update.message.reply_markdown("Usage: *list <user[text]> "\
|
update.message.reply_markdown("Usage: */list <user[text]> "\
|
||||||
"<pass[text]>*")
|
"<pass[text]>*")
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user