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_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

View File

@ -1,11 +1,11 @@
from os import path
import none
import nonebot
import config
if __name__ == '__main__':
none.init(config)
none.load_plugins(path.join(path.dirname(__file__), 'awesome', 'plugins'),
nonebot.init(config)
nonebot.load_plugins(path.join(path.dirname(__file__), 'awesome', 'plugins'),
'awesome.plugins')
none.run()
nonebot.run()

View File

@ -1,4 +1,4 @@
from none.default_config import *
from nonebot.default_config import *
HOST = '0.0.0.0'
PORT = 8080

View File

@ -1,2 +1,2 @@
none-bot>=0.2.1
nonebot>=1.0.0
jieba