Based on nonebot, a common bot framework for maimai.

Overview

mai bot 使用指南

此 README 提供了最低程度的 mai bot 教程与支持。

Step 1. 安装 Python

请自行前往 https://www.python.org/ 下载 Python 3 版本(> 3.7)并将其添加到环境变量(在安装过程中勾选 Add to system PATH)。在 Linux 系统上,可能需要其他方法安装 Python 3,请自行查找。

Step 2. 运行项目

建议使用 git 对此项目进行版本管理。您也可以直接在本界面下载代码的压缩包进行运行。

在运行代码之前,您需要从此链接下载资源文件并解压到src文件夹中。在此之后,输入

pip install -r requirements.txt

安装依赖,之后运行

python bot.py

运行项目。如果输出如下所示的内容,代表运行成功:

08-02 11:26:48 [INFO] nonebot | NoneBot is initializing...
08-02 11:26:48 [INFO] nonebot | Current Env: prod
08-02 11:26:49 [INFO] nonebot | Succeeded to import "maimaidx"
08-02 11:26:49 [INFO] nonebot | Succeeded to import "public"
08-02 11:26:49 [INFO] nonebot | Running NoneBot...
08-02 11:26:49 [INFO] uvicorn | Started server process [5268]
08-02 11:26:49 [INFO] uvicorn | Waiting for application startup.
08-02 11:26:49 [INFO] uvicorn | Application startup complete.
08-02 11:26:49 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10219 (Press CTRL+C to quit)

Step 3. 连接 CQ-HTTP

前往 https://github.com/Mrs4s/go-cqhttp > Releases,下载适合自己操作系统的可执行文件。 go-cqhttp 在初次启动时会询问代理方式,选择反向 websocket 代理即可。 之后设置反向 ws 地址、上报方式:

message:
  post-format: array
  
servers:
  - ws-reverse:
      universal: ws://127.0.0.1:10219/cqhttp/ws

然后设置您的 QQ 号和密码。您也可以不设置密码,选择扫码登陆的方式。

登陆成功后,后台应该会发送一条类似的信息:

08-02 11:50:51 [INFO] nonebot | WebSocket Connection from CQHTTP Bot 114514 Accepted!

至此,您可以和对应的 QQ 号聊天并使用 mai bot 的所有功能了。

FAQ

不是 Windows 系统该怎么办?

请自行查阅其他系统上的 Python 安装方式。cqhttp提供了其他系统的可执行文件,您也可以自行配置 golang module 环境进行编译。

配置 nonebot 或 cq-http 过程中出错?

请查阅 https://github.com/nonebot/nonebot2 以及 https://github.com/Mrs4s/go-cqhttp 中的文档。

部分消息发不出来?

被风控了。解决方式:换号或者让这个号保持登陆状态和一定的聊天频率,持续一段时间。

说明

本 bot 提供了如下功能:

命令 功能
help 查看帮助文档
今日舞萌 查看今天的舞萌运势
XXXmaimaiXXX什么 随机一首歌
随个[dx/标准][绿黄红紫白]<难度> 随机一首指定条件的乐曲
查歌<乐曲标题的一部分> 查询符合条件的乐曲
[绿黄红紫白]id<歌曲编号> 查询乐曲信息或谱面信息
<歌曲别名>是什么歌 查询乐曲别名对应的乐曲
定数查歌 <定数>
定数查歌 <定数下限> <定数上限>
查询定数对应的乐曲
分数线 <难度+歌曲id> <分数线> 展示歌曲的分数线

License

MIT

您可以自由使用本项目的代码用于商业或非商业的用途,但必须附带 MIT 授权协议。

Comments
  • 载入模块时报错

    载入模块时报错

    报以下错误

    09-17 23:13:57 [ERROR] nonebot | Failed to import "maimaidx"
    Traceback (most recent call last):
      File "/home/kaede/dev-programs/mai-bot/bot.py", line 37, in <module>
        nonebot.run(app="bot:app")
      File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/__init__.py", line 227, in run
        get_driver().run(host, port, *args, **kwargs)
      File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run
        uvicorn.run(app or self.server_app,
      File "/home/kaede/.local/lib/python3.9/site-packages/uvicorn/main.py", line 386, in run
        server.run()
      File "/home/kaede/.local/lib/python3.9/site-packages/uvicorn/server.py", line 49, in run
        loop.run_until_complete(self.serve(sockets=sockets))
      File "/home/kaede/.local/lib/python3.9/site-packages/uvicorn/server.py", line 56, in serve
        config.load()
      File "/home/kaede/.local/lib/python3.9/site-packages/uvicorn/config.py", line 308, in load
        self.loaded_app = import_from_string(self.app)
      File "/home/kaede/.local/lib/python3.9/site-packages/uvicorn/importer.py", line 20, in import_from_string
        module = importlib.import_module(module_str)
      File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "/home/kaede/dev-programs/mai-bot/bot.py", line 28, in <module>
        nonebot.load_plugins("src/plugins")
      File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/plugin/__init__.py", line 981, in load_plugins
        result = context.run(_load_plugin, manager, plugin_name)
    > File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/plugin/__init__.py", line 929, in _load_plugin
        module = manager.load_plugin(plugin_name)
      File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 154, in load_plugin
        return importlib.import_module(f"{self.namespace}.{name}")
      File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "/home/kaede/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 221, in exec_module
        super().exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "/home/kaede/dev-programs/mai-bot/src/plugins/maimaidx.py", line 8, in <module>
        from src.libraries.tool import hash
    ModuleNotFoundError: No module named 'src.libraries'
    

    环境为 Arch Linux,Python 版本为 3.9.7

    question 
    opened by sakuraikaede 7
  • 运行bot.py的时候报错了怎么办呀qwq

    运行bot.py的时候报错了怎么办呀qwq

    Traceback (most recent call last): File "C:\Users\nanaQaQ\Desktop\mai-bot\bot.py", line 5, in import nonebot ModuleNotFoundError: No module named 'nonebot'

    opened by kiyomiOvO 4
  • boy.py运行报错

    boy.py运行报错

    今天运行bot的时候发现bot.py无法正常运行,提示以一种访问权限不允许的方式做了一个访问套接字的尝试。 怀疑是启动bot的同时进行查分器成绩上传导致冲突 //运行报错log ============== RESTART: C:\Users\38369\Desktop\mai-bot-main\bot.py ============= 08-16 23:27:26 [INFO] nonebot | NoneBot is initializing... 08-16 23:27:26 [INFO] nonebot | Current Env: prod 08-16 23:27:29 [INFO] nonebot | Succeeded to import "maimaidx" 08-16 23:27:29 [INFO] nonebot | Succeeded to import "public" 08-16 23:27:29 [INFO] nonebot | Running NoneBot... 08-16 23:27:29 [INFO] uvicorn | Started server process [25428] 08-16 23:27:29 [INFO] uvicorn | Waiting for application startup. 08-16 23:27:29 [INFO] uvicorn | Application startup complete. 08-16 23:27:29 [ERROR] uvicorn | [Errno 10013] error while attempting to bind on address ('127.0.0.1', 10219): 以一种访问权限不允许的方式做了一个访问套接字的尝试。 08-16 23:27:34 [INFO] uvicorn | Waiting for application shutdown. 08-16 23:27:34 [INFO] uvicorn | Application shutdown complete.

    opened by MC57348 3
  • 关于查歌api的问题

    关于查歌api的问题

    我仿照b40功能想写一个查询某账号某定级所有歌曲的功能,用的是query/plate接口,发现总是返回500错误。 以下是maimai_best_40.py文件中仿照b40的方法接口:

    async def generate_all(payload: Dict) -> (Optional[Image.Image], BestList, bool):
        async with aiohttp.request("POST", "https://www.diving-fish.com/api/maimaidxprober/query/plate",
                                   json=payload) as resp:
            # print(resp)
            print(await resp.text())
    

    以下是maimaidx中的调用语句:

    qvtest = on_command("test")
    
    
    @qvtest.handle()
    async def _(bot: Bot, event: Event, state: T_State):
        username = str(event.get_message()).strip()
        p = ""
        if username == "":
            p = {'qq': str(event.get_user_id())}
        else:
            p = {'username': username}
        print(p)
        img, t_list, success = await generate_all(p)
    

    输出如下:

    <!doctype html>
    <title>500 Internal Server Error</title>
    <h1>Internal Server Error</h1>
    Server got itself in trouble
    

    想问下是我链接写错了嘛还是参数不对,烦请df大佬能给予解答,要是不方便或者不允许调用或者其他原因的话还请告知一下,谢谢啦~顺便,您好强,代码都好简洁ww

    opened by aaaa794191505 3
  • Go-cqhttp 升级到 beta7-fix1后无法输出b40图片

    Go-cqhttp 升级到 beta7-fix1后无法输出b40图片

    Centos8 Stream w/ Python 3.9.7 更新时未变更已有配置文件

    Maibot Log: 09-17 20:31:54 [ERROR] nonebot | Running matcher <Matcher from maimaidx, type=message, priority=1, temp=False> failed. Traceback (most recent call last): File "/root/mai-bot/bot.py", line 37, in nonebot.run(app="bot:app") File "/usr/local/lib/python3.9/site-packages/nonebot/init.py", line 227, in run get_driver().run(host, port, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run uvicorn.run(app or self.server_app, File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 386, in run server.run() File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 49, in run loop.run_until_complete(self.serve(sockets=sockets)) File "/usr/local/lib/python3.9/site-packages/nonebot/message.py", line 126, in _check_matcher await _run_matcher(Matcher, bot, event, state)

    File "/usr/local/lib/python3.9/site-packages/nonebot/message.py", line 154, in run_matcher await matcher.run(bot, event, state) File "/usr/local/lib/python3.9/site-packages/nonebot/matcher.py", line 544, in run await handler(self, bot, event, state) File "/usr/local/lib/python3.9/site-packages/nonebot/handler.py", line 81, in call await self.func( File "/root/mai-bot/src/plugins/maimaidx.py", line 347, in _ await best_40_pic.send(Message([ File "/usr/local/lib/python3.9/site-packages/nonebot/matcher.py", line 459, in send return await bot.send(event=event, message=message, **kwargs) File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/cqhttp/bot.py", line 456, in send return await self.send_msg(**params) File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/cqhttp/bot.py", line 400, in call_api return await super().call_api(api, **data) File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/_base.py", line 200, in call_api raise exception File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/_base.py", line 183, in call_api result = await self._call_api(api, **data) File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/cqhttp/bot.py", line 347, in _call_api return _handle_api_result(await ResultStore.fetch( File "/usr/local/lib/python3.9/site-packages/nonebot/adapters/cqhttp/bot.py", line 188, in _handle_api_result raise ActionFailed(**result) nonebot.adapters.cqhttp.exception.ActionFailed: <ActionFailed data=None, echo={'seq': 1}, msg=SEND_MSG_API_ERROR, retcode=100, status=failed, wording=请参考 go-cqhttp 端输出>

    Go-cqhttp Log: [2021-09-17 20:31:54] [WARNING]: 警告: 群 abcdefghi 消息图片上传失败: upload failed: upload failed: 82 [2021-09-17 20:31:54] [WARNING]: 群消息发送失败: 消息为空.

    bug 
    opened by ghost 3
  • 初次创建导入maimaidx失败

    初次创建导入maimaidx失败

    04-21 08:31:19 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "D:\Apps\mai-bot\bot.py", line 37, in nonebot.run(app="bot:app") File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot_init_.py", line 227, in run get_driver().run(host, port, *args, **kwargs) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\drivers\fastapi.py", line 170, in run uvicorn.run(app or self.server_app, File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\main.py", line 386, in run server.run() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 49, in run loop.run_until_complete(self.serve(sockets=sockets)) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 634, in run_until_complete self.run_forever() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 601, in run_forever self._run_once() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1905, in _run_once handle._run() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self.args) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 56, in serve config.load() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\config.py", line 308, in load self.loaded_app = import_from_string(self.app) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\importer.py", line 20, in import_from_string module = importlib.import_module(module_str) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in call_with_frames_removed File "D:\Apps\mai-bot\bot.py", line 28, in nonebot.load_plugins("src/plugins") File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init.py", line 981, in load_plugins result = context.run(_load_plugin, manager, plugin_name)

    File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 929, in load_plugin module = manager.load_plugin(plugin_name) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 221, in exec_module super().exec_module(module) File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "D:\Apps\mai-bot\src/plugins\maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "D:\Apps\mai-bot\src\libraries\maimaidx_music.py", line 149, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\i\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

    opened by Naexen 2
  • 由于目标计算机积极拒绝,无法连接。

    由于目标计算机积极拒绝,无法连接。

    PS C:\mai-bot-main> python bot.py 06-24 16:13:27 [INFO] nonebot | NoneBot is initializing... 06-24 16:13:27 [INFO] nonebot | Current Env: prod 06-24 16:13:31 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 169, in _new_conn conn = connection.create_connection( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection raise err File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn conn.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 353, in connect conn = self._new_conn() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 181, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000022E53A5B1C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.diving-fish.com', port=443): Max retries exceeded with url: /api/maimaidxprober/music_data (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022E53A5B1C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\mai-bot-main\bot.py", line 28, in nonebot.load_plugins("src/plugins") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 981, in load_plugins result = context.run(_load_plugin, manager, plugin_name)

    File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 929, in load_plugin module = manager.load_plugin(plugin_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 221, in exec_module super().exec_module(module) File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "src/plugins\maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "C:\mai-bot-main\src\libraries\maimaidx_music.py", line 154, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.diving-fish.com', port=443): Max retries exceeded with url: /api/maimaidxprober/music_data (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022E53A5B1C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')) 06-24 16:13:31 [INFO] nonebot | Succeeded to import "public" 06-24 16:13:31 [INFO] nonebot | Running NoneBot... 06-24 16:13:36 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 169, in _new_conn conn = connection.create_connection( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection raise err File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn conn.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 353, in connect conn = self._new_conn() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 181, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000022E53CD5D00>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.diving-fish.com', port=443): Max retries exceeded with url: /api/maimaidxprober/music_data (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022E53CD5D00>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "C:\mai-bot-main\bot.py", line 37, in nonebot.run(app="bot:app") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot_init_.py", line 227, in run get_driver().run(host, port, *args, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\drivers\fastapi.py", line 170, in run uvicorn.run(app or self.server_app, File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\main.py", line 386, in run server.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 49, in run loop.run_until_complete(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1890, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self.args) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 56, in serve config.load() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\config.py", line 308, in load self.loaded_app = import_from_string(self.app) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\importer.py", line 20, in import_from_string module = importlib.import_module(module_str) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in call_with_frames_removed File "C:\mai-bot-main\bot.py", line 28, in nonebot.load_plugins("src/plugins") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init.py", line 981, in load_plugins result = context.run(_load_plugin, manager, plugin_name)

    File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 929, in load_plugin module = manager.load_plugin(plugin_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 221, in exec_module super().exec_module(module) File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "src/plugins\maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "C:\mai-bot-main\src\libraries\maimaidx_music.py", line 154, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.diving-fish.com', port=443): Max retries exceeded with url: /api/maimaidxprober/music_data (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022E53CD5D00>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')) 06-24 16:13:36 [INFO] uvicorn | Started server process [6792] 06-24 16:13:36 [INFO] uvicorn | Waiting for application startup. 06-24 16:13:36 [INFO] uvicorn | Application startup complete. 06-24 16:13:36 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10219 (Press CTRL+C to quit)

    opened by deaddream91 1
  • 载入模块报错

    载入模块报错

    11-13 02:08:16 [INFO] nonebot | NoneBot is initializing... 11-13 02:08:16 [INFO] nonebot | Current Env: prod 11-13 02:08:16 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "C:\mai-bot-main\bot.py", line 28, in nonebot.load_plugins("src/plugins") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 981, in load_plugins result = context.run(_load_plugin, manager, plugin_name)

    File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init_.py", line 929, in load_plugin module = manager.load_plugin(plugin_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 221, in exec_module super().exec_module(module) File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "src/plugins\maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "C:\mai-bot-main\src\libraries\maimaidx_music.py", line 149, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 997, in create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname 11-13 02:08:16 [INFO] nonebot | Succeeded to import "public" 11-13 02:08:16 [INFO] nonebot | Running NoneBot... 11-13 02:08:16 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "C:\mai-bot-main\bot.py", line 37, in nonebot.run(app="bot:app") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot_init.py", line 227, in run get_driver().run(host, port, *args, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\drivers\fastapi.py", line 170, in run uvicorn.run(app or self.server_app, File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\main.py", line 386, in run server.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 49, in run loop.run_until_complete(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1890, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self.args) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\server.py", line 56, in serve config.load() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\config.py", line 308, in load self.loaded_app = import_from_string(self.app) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\uvicorn\importer.py", line 20, in import_from_string module = importlib.import_module(module_str) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in call_with_frames_removed File "C:\mai-bot-main\bot.py", line 28, in nonebot.load_plugins("src/plugins") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init.py", line 981, in load_plugins result = context.run(load_plugin, manager, plugin_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin_init.py", line 929, in load_plugin module = manager.load_plugin(plugin_name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 221, in exec_module super().exec_module(module) File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "src/plugins\maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "C:\mai-bot-main\src\libraries\maimaidx_music.py", line 149, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connection.py", line 500, in connect_tls_proxy return ssl_wrap_socket( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

    11-13 02:08:17 [INFO] uvicorn | Started server process [7892] 11-13 02:08:17 [INFO] uvicorn | Waiting for application startup. 11-13 02:08:17 [INFO] uvicorn | Application startup complete. 11-13 02:08:17 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:10219 (Press CTRL+C to quit)

    启动之后除了help以外所有功能都无法使用,确定没有任何代理,浏览器可以访问https://www.diving-fish.com/api/maimaidxprober/music_data 已经允许python.exe通过防火墙 windows10 LTSC python3.9.2 下载music_data.json 在src\libraries\maimaidx_music.py 第148行改为

    with open("./music_data.json","r",encoding="utf-8")as josn_file_handle: obj=json.load(josn_file_handle)

    就可以正常运行了 不知道出了什么问题

    opened by Yamamoto-2 1
  • 为什么我这边显示连接不上反向ws服务器

    为什么我这边显示连接不上反向ws服务器

    [INFO]: 开始尝试连接到反向WebSocket Universal服务器: ws://127.0.0.1:10219/cqhttp/ws [2021-09-21 00:03:13] [WARNING]: 连接到反向WebSocket Universal服务器 ws://127.0.0.1:10219/cqhttp/ws 时出现错误: dial tcp 127.0.0.1:10219: connectex: No connection could be made because the target machine actively refused it.

    opened by NZY114514 1
  • 网站Api倒了)

    网站Api倒了)

    ERRLOG

    08-31 15:52:15 [ERROR] nonebot | Failed to import "maimaidx" Traceback (most recent call last): File "/root/mai-bot/bot.py", line 37, in nonebot.run(app="bot:app") File "/root/mai-bot/lib/python3.9/site-packages/nonebot/init.py", line 227, in run get_driver().run(host, port, *args, **kwargs) File "/root/mai-bot/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run uvicorn.run(app or self.server_app, File "/root/mai-bot/lib/python3.9/site-packages/uvicorn/main.py", line 386, in run server.run() File "/root/mai-bot/lib/python3.9/site-packages/uvicorn/server.py", line 49, in run loop.run_until_complete(self.serve(sockets=sockets)) File "/root/mai-bot/lib/python3.9/site-packages/uvicorn/server.py", line 56, in serve config.load() File "/root/mai-bot/lib/python3.9/site-packages/uvicorn/config.py", line 308, in load self.loaded_app = import_from_string(self.app) File "/root/mai-bot/lib/python3.9/site-packages/uvicorn/importer.py", line 20, in import_from_string module = importlib.import_module(module_str) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/root/mai-bot/bot.py", line 28, in nonebot.load_plugins("src/plugins") File "/root/mai-bot/lib/python3.9/site-packages/nonebot/plugin/init.py", line 981, in load_plugins result = context.run(_load_plugin, manager, plugin_name)

    File "/root/mai-bot/lib/python3.9/site-packages/nonebot/plugin/init.py", line 929, in _load_plugin module = manager.load_plugin(plugin_name) File "/root/mai-bot/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 154, in load_plugin return importlib.import_module(f"{self.namespace}.{name}") File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "/root/mai-bot/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 221, in exec_module super().exec_module(module) File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/root/mai-bot/src/plugins/maimaidx.py", line 9, in from src.libraries.maimaidx_music import * File "/root/mai-bot/src/libraries/maimaidx_music.py", line 149, in obj = requests.get('https://www.diving-fish.com/api/maimaidxprober/music_data').json() File "/root/mai-bot/lib/python3.9/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    opened by ghost 1
Owner
Diving-Fish
Coders always produce interesting things when they are not pushed.
Diving-Fish
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

null 555 Dec 30, 2022
Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring files on the Internet to our beloved Google Drive. Based on python-aria-mirror-bot

- [ MAYBE UPDATE & ADD MORE MODULE ] Bagas Mirror&Leech Bot Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring file

null 4 Nov 23, 2021
Python CMR is an easy to use wrapper to the NASA EOSDIS Common Metadata Repository API.

This repository is a copy of jddeal/python_cmr which is no longer maintained. It has been copied here with the permission of the original author for t

NASA 9 Nov 16, 2022
The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards

The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards.

Shweta_kumawat 2 Jan 20, 2022
(@Tablada32BOT is my bot in twitter) This is a simple bot, its main and only function is to reply to tweets where they mention their bot with their @

Remember If you are going to host your twitter bot on a page where they can read your code, I recommend that you create an .env file and put your twit

null 3 Jun 4, 2021
Simple bot to receive feedback,same as livegram bot but with more features & full control over bot

Kontak Simple bot to receive feedback,same as livegram bot but with more features & full control over bot Deploy to VPS

Mahin Ahmed 2 Dec 16, 2021
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Sunflower-farmers-automated-bot - Sunflower Farmers NFT Game automated bot.IT IS NOT a cheat or hack bot

Sunflower-farmers-auto-bot Sunflower Farmers NFT Game automated bot.IT IS NOT a

Arthur Alves 17 Nov 9, 2022
A Telegram Bot with(Forwarder Bot + User Bot + More Features )

A Telegram Bot with(Forwarder Bot + User Bot + More Features )

Kaif 3 Feb 16, 2022
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

null 3 Sep 13, 2021
This is my Discord-Bot named priamoryki-bot based on python.

This is my Discord-Bot named priamoryki-bot based on python. It's a public repository without private information, so you need to correct some code for everything to be working.

priamoryki 2 Dec 14, 2022
A Powerful telegram giveawayz bot based on the python-telegram-bot API

GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

Zycho #AFK 5 Jul 31, 2022
Utilizing the freqtrade high-frequency cryptocurrency trading framework to build and optimize trading strategies. The bot runs nonstop on a Rasberry Pi.

Freqtrade Strategy Repository Please test all scripts and dry run them before using them in live mode Contact me on discord if you have any questions!

Michael Fourie 90 Jan 1, 2023
The Discord bot framework for Python

Pycordia ⚠️ Note! As of now, this package is under early development so functionalities are bound to change drastically. We don't recommend you curren

Ángel Carias 24 Jan 1, 2023
This is Pdisk Upload Bot made using Python with Pyrogram Framework. Its capable of uploading direct download link with thumbnail or without thumbnail & with Title Support.

Pdisk-Upload-Bot Introduction This Is PDisk Upload Bot Used To Upload Direct Link To Pdisk With Thumb Support Deploy Heroku Deploy Local Deploy pip in

HEIMAN PICTURES 32 Oct 21, 2022
A bot framework for Reddit to manage threads, wiki pages, widgets, menus and more.

Sub Manager Sub Manager is a bot framework for Reddit to automate a variety of tasks on one or more subreddits, and can be configured and run without

r/SpaceX 3 Aug 26, 2022
A hyper-user friendly bot framework built on hikari

Framework A hyper-user friendly bot framework built on hikari. Framework is based off the blocking discord library disco, In both modularity and struc

Vincent 1 Jan 10, 2022