Browse Source

Add error proof

master
Jaeha Choi 10 months ago
parent
commit
bc382ea1bb
Signed by: Jaeha.Choi GPG Key ID: 7D8ACCBCE8DC6282
  1. 2
      main.py

2
main.py

@ -450,6 +450,8 @@ def main(admin_channel):
await channel.send("✅ Marked as solved! " + random.choice(SUCCESS_EMOJI))
elif res == 1:
await channel.send("✅ Answer updated! " + random.choice(SUCCESS_EMOJI))
elif res == 2:
await channel.send("❌ Error: invalid slug. " + random.choice(ERROR_EMOJI))
elif msg.startswith("AnswerBy"):
await channel.send(hackerrank_bot.show_ans_by(msg, 1))

Loading…
Cancel
Save