Browse Source

wrong syntax

ivan 5 năm trước cách đây
mục cha
commit
f32122ed35
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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