Rename package to "nonebot"

This commit is contained in:
Richard Chien
2018-12-27 20:23:45 +08:00
parent b8cb8e440b
commit 663797219a
71 changed files with 221 additions and 220 deletions

View File

@ -1,5 +1,5 @@
from none import on_request, RequestSession
from none import on_notice, NoticeSession
from nonebot import on_request, RequestSession
from nonebot import on_notice, NoticeSession
# 将函数注册为群请求处理器

View File

@ -1,13 +1,13 @@
from datetime import datetime
import none
import nonebot
import pytz
from aiocqhttp.exceptions import Error as CQHttpError
@none.scheduler.scheduled_job('cron', hour='*')
@nonebot.scheduler.scheduled_job('cron', hour='*')
async def _():
bot = none.get_bot()
bot = nonebot.get_bot()
now = datetime.now(pytz.timezone('Asia/Shanghai'))
try:
await bot.send_group_msg(group_id=672076603,

View File

@ -3,9 +3,9 @@ from typing import Optional
import aiohttp
from aiocqhttp.message import escape
from none import on_command, CommandSession
from none import on_natural_language, NLPSession, NLPResult
from none.helpers import context_id, render_expression
from nonebot import on_command, CommandSession
from nonebot import on_natural_language, NLPSession, NLPResult
from nonebot.helpers import context_id, render_expression
# 定义无法获取图灵回复时的「表达Expression
EXPR_DONT_UNDERSTAND = (

View File

@ -1,5 +1,5 @@
from none import on_command, CommandSession
from none import on_natural_language, NLPSession, NLPResult
from nonebot import on_command, CommandSession
from nonebot import on_natural_language, NLPSession, NLPResult
from jieba import posseg
from .data_source import get_weather_of_city