This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from khl import Bot, Message | |
from khl.card import CardMessage, Card, Module, Element, ClickTypes | |
from khl.command import Command | |
bot1 = Bot('xxxxxx') # 不再需要 token= | |
bot2 = Bot('xxxxxx') # async 版的 Bot.run,支持一个文件运行多个 Bot | |
@bot1.task.add_interval(seconds=2) | |
async def go(): |