Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docs Web Site Deploy
on:
push:
branches:
- master
- main
paths-ignore:
- 'examples/**'
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint Other Files
on:
push:
branches:
- master
- main
paths-ignore:
- '**.py'
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on:
push:
branches:
- master
- main
paths:
- '**.py'
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
title: 'docs: 更新 API 文档'
body: 自动更新 API 文档
branch: docs/update-api-docs
base: master
base: main

build:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Spell Check
on:
push:
branches:
- master
- main
pull_request:
workflow_dispatch:

Expand All @@ -12,4 +12,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
- uses: crate-ci/typos@v1
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
branches:
- master
- main
pull_request:
paths:
- '**.py'
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

<https://docs.alicebot.dev/develop/contributing>

<https://github.com/AliceBotProject/alicebot/blob/master/docs/develop/contributing.md>
<https://github.com/AliceBotProject/alicebot/blob/main/docs/develop/contributing.md>
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot

Expand All @@ -8,11 +8,11 @@
</div>

<div align="center">
<a href="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/LICENSE">
<a href="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/LICENSE">
<img src="https://img.shields.io/github/license/AliceBotProject/alicebot" alt="license">
</a>
<a href="https://pypi.python.org/pypi/alicebot">
<img src="https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FAliceBotProject%2Falicebot%2Fraw%2Fmaster%2Fpyproject.toml" alt="pypi">
<img src="https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FAliceBotProject%2Falicebot%2Fraw%2Fmain%2Fpyproject.toml" alt="pypi">
</a>
<a href="https://pypi.python.org/pypi/alicebot">
<img src="https://img.shields.io/pypi/v/alicebot" alt="pypi">
Expand Down Expand Up @@ -41,13 +41,13 @@
<img src="https://codecov.io/gh/AliceBotProject/alicebot/graph/badge.svg?token=3H6ZU6NN0J" alt="codecov">
</a>
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml/badge.svg?branch=master&event=push" alt="github">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml/badge.svg?branch=main&event=push" alt="github">
</a>
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml/badge.svg?branch=master&event=push" alt="github">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml/badge.svg?branch=main&event=push" alt="github">
</a>
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml/badge.svg?branch=master&event=push" alt="github">
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml/badge.svg?branch=main&event=push" alt="github">
</a>
<br />
<a href="https://jq.qq.com/?_wv=1027&k=ZbE3p6tq">
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default defineConfig({

editLink: {
pattern:
'https://github.com/AliceBotProject/alicebot/edit/master/docs/:path',
'https://github.com/AliceBotProject/alicebot/edit/main/docs/:path',
text: '在 GitHub 上编辑此页',
},

Expand Down
2 changes: 1 addition & 1 deletion docs/develop/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ AliceBot 使用 [Ruff](https://docs.astral.sh/ruff/) 作为格式化工具,如

AliceBot 具有完全的类型注解。

在 [pyproject.toml](https://github.com/AliceBotProject/alicebot/blob/master/pyproject.toml) 文件中已经提供了针对 Pyright (Pylance 背后的类型检查器) 和 MyPy 的配置,请确保你的代码能够通过这种严格程度的类型检查。
在 [pyproject.toml](https://github.com/AliceBotProject/alicebot/blob/main/pyproject.toml) 文件中已经提供了针对 Pyright (Pylance 背后的类型检查器) 和 MyPy 的配置,请确保你的代码能够通过这种严格程度的类型检查。

如果必要,你可以在代码中使用 `# type: ignore` 注释来抑制类型检查,但请注意,请将此作为最后手段,不要轻易使用。

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/adapters/telegram-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class HelloWorld(Plugin[MessageEvent, None, None]):

向机器人发送 `/hello`,你将收到 `Hello, I am Alice.` 的回复。

更多示例可以参考 <https://github.com/AliceBotProject/alicebot/tree/master/packages/alicebot-adapter-telegram/examples>。
更多示例可以参考 <https://github.com/AliceBotProject/alicebot/tree/main/packages/alicebot-adapter-telegram/examples>。

## 调用 Telegram API

Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-apscheduler/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-APScheduler

Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-cqhttp/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-CQHTTP

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""CQHTTP 协议适配器。

本适配器适配了 OneBot v11 协议。
协议详情请参考:[OneBot](https://github.com/howmanybots/onebot/blob/master/README.md)。
协议详情请参考:[OneBot](https://github.com/botuniverse/onebot-11/blob/master/README.md)。
"""

import inspect
Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-dingtalk/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-DingTalk

Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-mirai/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-CQHTTP

Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-onebot/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-OneBot

Expand Down
2 changes: 1 addition & 1 deletion packages/alicebot-adapter-telegram/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>

# AliceBot-Adapter-Telegram

Expand Down
Loading