From 0eb3775e610570d56ade9636164638a66c2a7746 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 17 Feb 2012 13:46:09 +1300 Subject: [PATCH] Added 200 coin limit to coin.py --- plugins/coin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/coin.py b/plugins/coin.py index b50f329..e24efd2 100644 --- a/plugins/coin.py +++ b/plugins/coin.py @@ -24,9 +24,12 @@ def coin(inp): count = int(inp) else: if inp: - return "Invalid Input :(" + return "Invalid input." else: count = 1 + + if count > 200: + return "Too many coins! Maximum is 200." # depending on the count, we use two different methods to get the output if count == 1: flip = random.randint(0,1)