Skip to content

Latest commit

 

History

History
133 lines (76 loc) · 6.68 KB

UPGRADE_GUIDE.md

File metadata and controls

133 lines (76 loc) · 6.68 KB

English

Warning

Cross-version updates are NOT SUPPORTED. For multi-version updates, please iterate through each version to update to the latest version. Before updating, please back up your data using the prefix command download_data.

⬆️Click Here to Upgrade from 0.5.1 to 0.5.2

This update does not involve any changes to the database structure, so there is no need to use an upgrade script. Simply pull the updated code and upgrade the environment to complete the update.

pip install --upgrade -r requirements.txt
⬆️click here to upgrade from 0.4.1 to 0.5.1

📢Version 0.5.1 involves changes to dependency packages. Please ensure that all required packages are correctly installed in your environment.

📢This update includes significant changes to environment variables and configuration files. Please refer to the README for details to ensure proper operation.

Create a Python file named upgrade.py in the root directory of the project, paste the following code, and run the script using python upgrade.py. Alternatively, you can directly start the bot, which will check for the existence of the update script and automatically update. After the upgrade is complete, please remove this script to avoid repeated updates.

Gist Card

⬆️click here to upgrade from 0.4 to 0.4.1

Create a python file in the cogs folder and name it upgrade.py. Paste the following code and run the bot. Use the slash command /upgrade version to upgrade. This cog can be removed after the upgrade is completed.

Gist Card

⬆️click here to upgrade from 0.3.5 to 0.4

⚠️Before everything starts you must upgrade the version of tweety-ns to 1.0.9.2 first and download or pull the new code from this repo.

Create a python file in the cogs folder and name it upgrade.py. Paste the following code and run the bot. Use the slash command /upgrade version to upgrade. This cog can be removed after the upgrade is completed.

Gist Card

⬆️click here to upgrade from 0.3.4 to 0.3.5

Create a python file in the cogs folder and name it upgrade.py. Paste the following code and run the bot. Use the slash command /upgrade to upgrade. This cog can be removed after the upgrade is completed.

Gist Card

⬆️click here to upgrade from 0.3.3 to 0.3.4

Because the database structure has been updated, you must use the following code to update the database structure.

Gist Card

繁體中文

Warning

不支援跨版本更新,多版本更新請迭代更新至新版本。更新前請先透過前綴指令 download_data 進行資料備份。

⬆️0.5.1升級到0.5.2請點這裡

本次更新不涉及資料庫結構更新,因此不用使用升級腳本來完成升級,請直接拉取程式碼並升級環境即可完成更新。

pip install --upgrade -r requirements.txt
⬆️0.4.1升級到0.5.1請點這裡

📢0.5.1版本涉及依賴套件更動,請確定環境正確安裝所有所需的套件

📢本次更新對環境變數、設定檔進行了大量改動,詳情請見README以確保運作正常

在專案根目錄創建一個python檔案並命名為 upgrade.py,貼上下面的程式碼並執行該腳本:python upgrade.py,或是直接啟動機器人,會檢查是否存在更新腳本並自動更新。升級結束後請移除這個腳本避免重複更新。

Gist Card

⬆️0.4升級到0.4.1請點這裡

cogs 資料夾創建一個python檔案並命名為 upgrade.py,貼上下面的程式碼並運行機器人,使用斜線指令 /upgrade version 進行升級。升級結束後可以移除這個cog。

Gist Card

⬆️0.3.5升級到0.4請點這裡

⚠️在一切開始之前請先更新 tweety-ns1.0.9.2 版本並且從這個repo下載或拉取新的程式碼。

cogs 資料夾創建一個python檔案並命名為 upgrade.py,貼上下面的程式碼並運行機器人,使用斜線指令 /upgrade version 進行升級。升級結束後可以移除這個cog。

Gist Card

⬆️0.3.4升級到0.3.5請點這裡

cogs 資料夾創建一個python檔案並命名為 upgrade.py,貼上下面的程式碼並運行機器人,使用斜線指令 /upgrade 進行升級。升級結束後可以移除這個cog。

Gist Card

⬆️0.3.3升級到0.3.4請點這裡

因為資料庫結構更新因此必須使用以下程式碼更新資料庫結構。

Gist Card