Skip to content

Commit

Permalink
fix 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 20, 2022
1 parent 9f4859d commit 65997d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time
import traceback
import random
from creart import it
from creart import it, add_creator
from typing import Optional, List
from loguru import logger
from pathlib import Path
Expand Down Expand Up @@ -33,6 +33,7 @@
from graia.scheduler.timers import every_hours
from arclet.alconna import Alconna, namespace
from arclet.alconna.tools.formatter import MarkdownTextFormatter
from arclet.alconna.graia.create import AlconnaBehaviorCreator
from arclet.alconna.graia import AlconnaBehaviour, AlconnaDispatcher, MatchPrefix
from graiax.playwright import PlaywrightService

Expand All @@ -44,6 +45,7 @@
from .logger import set_output

BotInstance: Ctx['RaianMain'] = Ctx("raian_bot")
add_creator(AlconnaBehaviorCreator)


async def handler(output: str):
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from app import RaianMain, load_config

bot = RaianMain(load_config('my_config.yml'), debug_log=True)
bot = RaianMain(load_config('bot_config.yml'), debug_log=True)

if __name__ == '__main__':
bot.load_plugins()
Expand Down
3 changes: 1 addition & 2 deletions plugins/weibo_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
Args["user;O#微博用户名称", str, ArgField(completion=lambda: "比如说, 育碧")],
Option(
"动态",
Args["index#从最前动态排起的第几个动态", int, -1],
Args["page#第几页动态", int, 1],
Args["index#从最前动态排起的第几个动态", int, -1]["page#第几页动态", int, 1],
help_text="从微博获取指定用户的动态"
),
Option("关注|增加关注", dest="follow", help_text="增加一位微博动态关注对象"),
Expand Down

0 comments on commit 65997d2

Please sign in to comment.