And instead give an error to the user explaining the usage of the
/solved command.
if not puzzle:
return bot_reply("Sorry, this is not a puzzle channel.")
if not puzzle:
return bot_reply("Sorry, this is not a puzzle channel.")
+ if not args:
+ return bot_reply(
+ "Error, no solution provided. Usage: `/solved SOLUTION HERE`")
+
# Set the status and solution fields in the database
puzzle['status'] = 'solved'
puzzle['solution'].append(args)
# Set the status and solution fields in the database
puzzle['status'] = 'solved'
puzzle['solution'].append(args)