mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
Rename package to "nonebot"
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from none import on_command, CommandSession
|
||||
from nonebot import on_command, CommandSession
|
||||
|
||||
|
||||
# on_command 装饰器将函数声明为一个命令处理器
|
||||
|
@ -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()
|
||||
|
@ -1,4 +1,4 @@
|
||||
from none.default_config import *
|
||||
from nonebot.default_config import *
|
||||
|
||||
HOST = '0.0.0.0'
|
||||
PORT = 8080
|
||||
|
@ -1 +1 @@
|
||||
none-bot>=0.2.1
|
||||
nonebot>=1.0.0
|
Reference in New Issue
Block a user