jerrita 9 bulan lalu
induk
melakukan
13c2c81fce
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      plugins/anon/base.py

+ 1 - 3
plugins/anon/base.py

@@ -9,8 +9,6 @@ from anon.event import MessageEvent
 
 class AnonPlugin(Plugin):
     async def on_load(self):
-        super().on_load()
-        self.interested = [MessageEvent]
         await Bot().send_private_message(782981223, f"Anon Started at: {datetime.datetime.now()}")
 
     async def on_event(self, event: MessageEvent):
@@ -18,4 +16,4 @@ class AnonPlugin(Plugin):
             await event.reply('は?')
 
 
-PluginManager().register_plugin(AnonPlugin())
+PluginManager().register_plugin(AnonPlugin([MessageEvent]))