Ver código fonte

wrong syntax

ivan 5 anos atrás
pai
commit
f32122ed35
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/plugins/simple.py

+ 2 - 2
src/plugins/simple.py

@@ -47,5 +47,5 @@ def inquire(message):
     opts = "Yes", "No", "Maybe", "Perhaps", "I guess", "Probably shouldn't", "rand"
     chosen = random.choice(opts)
     if chosen == "rand":
-        chosen = string(random.randrange(10))
-    return f"{chosen}"
+        chosen = str(random.randrange(10))
+    return chosen