|
@@ -8,11 +8,10 @@ from anon.event import MessageEvent
|
|
|
|
|
|
|
|
|
|
class AnonPlugin(Plugin):
|
|
class AnonPlugin(Plugin):
|
|
- def on_load(self):
|
|
|
|
|
|
+ async def on_load(self):
|
|
super().on_load()
|
|
super().on_load()
|
|
self.interested = [MessageEvent]
|
|
self.interested = [MessageEvent]
|
|
- bot = Bot()
|
|
|
|
- asyncio.run(bot.send_private_message(782981223, f"Anon Started at: {datetime.datetime.now()}"))
|
|
|
|
|
|
+ await Bot().send_private_message(782981223, f"Anon Started at: {datetime.datetime.now()}")
|
|
|
|
|
|
async def on_event(self, event: MessageEvent):
|
|
async def on_event(self, event: MessageEvent):
|
|
if event.raw == 'anon':
|
|
if event.raw == 'anon':
|