jerrita 7 months ago
parent
commit
a38ccfc1f1
1 changed files with 3 additions and 3 deletions
  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('/')))