Discord Pyhon Bot 骨架
運行環境 建議
Python 3.7
以上 /discord.py 1.7
以上
當前環境為Python 3.7
/discord.py 1.7.3
- 下載整個專案
- 解壓後將
example_setting.json
重新命名為setting.json
; 自行修改設定檔裡的資料 - 運行
bot.py
即可
/ # 根目錄
------------------------------------
- bot.py # bot 啟動主文件
- example_setting.json # 設定檔
/cmds # 放置所有 Cog 指令
------------------------------------
- main.py #主要指令區(舉凡需要加上!號的在這檔案進行編寫)(可自行設定)
- event.py # 所有 event 觸發性事件指令區
- mod.py # 管理、控制類指令區
- owner.py # 擁有者權限指令區
/core #放置類別、核心通用功能
------------------------------------
- classes.py # 主要類別區
- check.py # 自定全域指令檢查器
- error.py # 預設、自訂 錯誤管理器