aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/plugins/exc.py
blob: 4d6b885fbe765feb6359f5f06173b5f432cca30a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from iamai import Plugin
import os
class Exec(Plugin):
    async def handle(self) -> None:
        from hydroroll.config import ConfigManager, GlobalConfig
        tmpConf = ConfigManager(os.path.join(GlobalConfig._current_path, "config", "userConf.dat"))
        tmpConf.load()
        await self.event.reply(str(tmpConf.properties))
        
        
    async def rule(self) -> bool:
        if self.event.adapter.name != "cqhttp":
            return False
        if self.event.type != "message":
            return False
        return self.event.message.startswith("t")

print(1)