|
@@ -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('/')))
|
|
|
|
|
|
|