jerrita 7 mesi fa
parent
commit
a38ccfc1f1
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      plugins/anon/muri.py

+ 3 - 3
plugins/anon/muri.py

@@ -28,7 +28,7 @@ muri db set <name> <content>
 
 class MuriPlugin(Plugin):
     first_greet = True
-    great_date = 0
+    greet_date = 0
     keywords = ['muri']
     brif = '牡蛎管理器'
     store = Storage('muri')
@@ -107,8 +107,8 @@ class MuriPlugin(Plugin):
                 self.first_greet = False
                 await event.reply(msg, quote=False)
 
-            if msg in db:
-                random.seed(datetime.datetime.now())
+            if msg in self.db:
+                random.seed(str(datetime.datetime.now()))
                 await event.reply(random.choice(self.db[msg].split('/')))