forked from varia/bots
attempt to improve the error message, added a references to the @help command
This commit is contained in:
parent
e8434a545e
commit
4d913f53fa
@ -288,7 +288,7 @@ class Logbot(Bot):
|
|||||||
)
|
)
|
||||||
reply = f"I'm switching the stylesheet of this log to: { stylesheet }."
|
reply = f"I'm switching the stylesheet of this log to: { stylesheet }."
|
||||||
except:
|
except:
|
||||||
reply = f"The stylesheet '{ stylesheet }' is unknown to me. Check @help to see the available stylesheets."
|
reply = f"The stylesheet '{ stylesheet }' is unknown to me. Check logbot @help to see the available stylesheets."
|
||||||
|
|
||||||
# Response to @font
|
# Response to @font
|
||||||
elif "@font" in message.text:
|
elif "@font" in message.text:
|
||||||
@ -314,7 +314,7 @@ class Logbot(Bot):
|
|||||||
reply = f"The font '{ font }' is unknown to me. Check @help to see the available fonts."
|
reply = f"The font '{ font }' is unknown to me. Check @help to see the available fonts."
|
||||||
|
|
||||||
else:
|
else:
|
||||||
reply = "Hmm ... not sure what you want to do?"
|
reply = "Hmm ... not sure what you want to do? Check logbot @help to see the available commands."
|
||||||
|
|
||||||
# Regenerate the log webpage
|
# Regenerate the log webpage
|
||||||
self._write_log(message)
|
self._write_log(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user