ivan %!s(int64=5) %!d(string=hai) anos
pai
achega
f32122ed35
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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