|
@@ -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]))
|