
高一下自主學習報告
PGpenguin72這是我在高一下進行的自主學習報告,是在全高一面前(也就是我的同學們面前)講講我在這段自主學習時期都做了些什麼。這篇的主題是:「從零開始製作一隻Discord Bot – 北極企鵝」,內容涵蓋超豐富,有興趣的歡迎查看下面的所有資訊喔!
YouTube 影片鏈結:
簡報資訊:
| 欄位 | 說明 |
|---|---|
| 標題 | Discord Bot—一隻北極企鵝 |
| 內容 | 功能示意、程式畫面、錯誤紀錄等等 |
| 簡報頁數 | 共 31 頁 |
| 來源 | pg72.tw |
| 作者 | PGpenguin72 |
| 簡報軟體 | Presenterm |
| 檔案下載 | MD |
簡報軟體鏈結:
簡報預覽(用網頁模擬):
我是誰?
杜昱叡
- AHSNCCU10321 [#116學測生]
- 一隻神奇的PG企鵝(來自台中市)
- 喜歡 🎮 打音遊, 🎵 聽音樂, 🏸 打羽球, 💻 寫程式
我的Instagram: @pg_penguin_72
Discord 是什麼?
Discord 是一個免費的語音文字通訊平台,廣泛應用於各種社群
-
以「伺服器」為社群單位建構而成,伺服器內可設多個頻道。
-
支援加入機器人,能播放音樂、查資訊、玩遊戲等 酷酷的功能,超實用!
-
操作介面簡潔,新手也能快速上手。
-
支援 Python、JavaScript 等語言開發機器人,是程式學習的絕佳實作場域。
自主學習我做了啥?
- 製作一隻Discord機器人 ✅
製作動機
自主學習我做了啥?
特色介紹
給你們看一下我創了幾隻企鵝出來
前情提要Q&A
北極企鵝
名字由來?
北極沒有企鵝,所以才想說取北極企鵝(?
為什麼有這麼多北極企鵝?
不同時期,不同協助者而產生不同版本。
有什麼特色?
特色其實不多,他就是我自己寫的一隻機器人而已:D
功能介紹
/包裹追蹤器
/更新公告
/服務條款
/建議
/真心話大冒險
/開發者選項
/註冊生日
/數數字
/幫助
/隱私權條款
/擲骰子
/簽到
/薯織大大專屬
/地震通知設定
/伺服器設定
/每日簽到訊息訂閱
/設定歡迎消息
/跨伺服器聊天
/真心話大冒險出題
/數位錢包憑證
功能介紹
/包裹追蹤器
/更新公告
/服務條款
/建議
/真心話大冒險
/開發者選項
/註冊生日
/數數字
/幫助
/隱私權條款
/擲骰子
/簽到
/薯織大大專屬指令
/地震通知設定
/伺服器設定
/每日簽到訊息訂閱
/設定歡迎消息
/跨伺服器聊天
/真心話大冒險出題
/數位錢包憑證
- 每日簽到功能
- 每天早上06:00時,北極企鵝會發一則訊息來提醒用戶簽到!
每日簽到訊息訂閱
該簽到了,你今天簽到了嗎?
趕快點選下方按鈕來簽到吧!!!
每日一言:
你可以不成為我的助力,但絕不能成為我的阻力。
北極企鵝 || Created by. Arcant Studio
- 每日簽到功能
功能介紹
- 每日簽到功能
功能介紹
- 每日簽到功能
2. 跨伺服器文字聊天
- 每個伺服器都可以設定自己的串連code,也可以設定是否公開頻道。
PGpenguin72 [ArcantStudio | 極區工作室] |應用| — 凌晨12:08
波雞 [PG企鵝俱樂部] |應用| — 凌晨12:22
地瓜 [一個神奇的小窩] |應用| — 凌晨12:22
- 跨伺服器文字聊天
3. 包裹追蹤器(本功能實現由Track.tw官方提供API串接)
- 用戶可將包裹追蹤碼輸入,即可在Discord裏追蹤自己的包裹進度!
包裹追蹤碼:7675603946
新竹物流
快取時間:2025-03-31 10:38:12
🕒 2025-03-28 11:22:00 UTC+8 貨件已抵達鳳山營業所,貨件整理中。貨物件數共1件。
🕒 2025-03-28 11:22:00 UTC+8 貨件已抵達高雄港碼頭,貨物轉運中。貨物件數共1件。
|上一頁| |1/1頁| |下一頁| |刷新|
功能介紹
- 包裹追蹤器(本功能實現由Track.tw官方提供API串接)
經驗分享
有一次啟動我的機器人時:
[ERROR] discord.ext.commands.errors.CommandNotFound: Command "boom" is not found
[ERROR] discord.ext.commands.errors.MissingRequiredArgument: 'user' is a required argument that is missing.
[ERROR] discord.ext.commands.errors.TooManyArguments: Too many arguments passed to the command.
[ERROR] discord.ext.commands.errors.CheckFailure: The check functions for command ban failed.
[ERROR] discord.ext.commands.errors.MissingPermissions: You are missing the permission(s) to use this command.
[ERROR] discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ZeroDivisionError: division by zero
[ERROR] AttributeError: 'NoneType' object has no attribute 'send'
[ERROR] TypeError: 'str' object is not callable
[ERROR] TypeError: object NoneType can't be used in 'await' expression
[ERROR] json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[ERROR] FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
[ERROR] discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
[ERROR] discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
[ERROR] KeyError: 'username'
[ERROR] asyncio.exceptions.TimeoutError
[ERROR] discord.ext.commands.errors.CommandOnCooldown: This command is on cooldown. Try again in 10.5s
[ERROR] ValueError: invalid literal for int() with base 10: 'nhentai'
[ERROR] RuntimeError: Event loop is closed
[ERROR] ImportError: cannot import name 'commands' from 'discord'
[ERROR] ModuleNotFoundError: No module named 'discord'
[ERROR] aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443
[ERROR] sqlite3.OperationalError: no such table: users
經驗分享
還請問閣下該如何應對www
經驗分享
說實話
經驗分享
經驗分享
所以我就開始問ChatGPT
經驗分享
PGpenguin72:
為什麼會出現這些錯誤? (上傳了error.log)
ChatGPT:
可能你的腦袋有一些錯誤,需要幫你除錯一下嗎?
PGpenguin72:
????
你已達到GPT-4O.方案的使用上限,直到晚上8:05後,重設才能繼續使用
經驗分享
好剛剛那段是開玩笑的
真實情況是我去各大論壇找問題,還有使用AI來學習解決問題。
經驗分享
最後,我的北極企鵝終於顯示了:
Channel settings loaded successfully.
Initializing challenge cog...
✅ 成功獲取 56 個物流廠商
Waiting for the next minute to start the daily_signs loop
$$$目前登錄身分: 北極企鵝gamma#7325
載入了 21 個斜線指令。
載入了 2 個一般指令:
= 一般指令: <@1335858158391787613> help
= 一般指令: <@1335858158391787613> earthquake
總共載入了 23 個指令
Bot is ready!
(開機成功的畫面)
心得
以上我想說的是:
不要吝嗇於詢問,查資料,不懂就是要問要了解。
AI是工具,善用工具會增加效率。
嘗試各種東西增加自己知識儲備量,累積經驗,對自己未來有超多幫助!
學程式要多多實作,讓科技運用到生活之中。
心得
補充
北極企鵝是我的一個專案,我在今年創了 ArcantStudio(極區工作室)。
這間工作室是一群志同道合的人組成的, 目前沒有盈利。
補充
北極企鵝是我的一個專案,我在今年創了 ArcantStudio(極區工作室)。
這間工作室是一群志同道合的人組成的, 目前沒有盈利。
我們將於今年暑假開始製作 一款恐怖遊戲“溶蝕”。
希望明年暑假上架到Steam!
只要你對開發遊戲或這個專案有興趣,
補充
北極企鵝是我的一個專案,我在今年創了 ArcantStudio(極區工作室)。
這間工作室是一群志同道合的人組成的, 目前沒有盈利。
我們將於今年暑假開始製作 一款恐怖遊戲“溶蝕”。
希望明年暑假上架到Steam!
只要你對開發遊戲或這個專案有興趣, 歡迎可以掃描這個QRcode來加入我們喔!
>謝謝大家聽我的分享!
- 1. YouTube 影片鏈結:
- 2. 簡報資訊:
- 3. 簡報軟體鏈結:
- 4. 簡報預覽(用網頁模擬):
- 5. 我是誰?
- 6. 杜昱叡
- 7. Discord 是什麼?
- 8. 自主學習我做了啥?
- 9. 自主學習我做了啥?
- 10. 給你們看一下我創了幾隻企鵝出來
- 11. /包裹追蹤器
- 12. /簽到
- 13. /跨伺服器聊天
- 13.1. 功能介紹
- 13.2. 功能介紹
- 13.3. 功能介紹
- 13.4. 經驗分享
- 13.4.1. [ERROR] discord.ext.commands.errors.CommandNotFound: Command "boom" is not found
- 13.4.2. [ERROR] discord.ext.commands.errors.MissingRequiredArgument: 'user' is a required argument that is missing.
- 13.4.3. [ERROR] discord.ext.commands.errors.TooManyArguments: Too many arguments passed to the command.
- 13.4.4. [ERROR] discord.ext.commands.errors.CheckFailure: The check functions for command ban failed.
- 13.4.5. [ERROR] discord.ext.commands.errors.MissingPermissions: You are missing the permission(s) to use this command.
- 13.4.6. [ERROR] discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ZeroDivisionError: division by zero
- 13.4.7. [ERROR] AttributeError: 'NoneType' object has no attribute 'send'
- 13.4.8. [ERROR] TypeError: 'str' object is not callable
- 13.4.9. [ERROR] TypeError: object NoneType can't be used in 'await' expression
- 13.4.10. [ERROR] json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- 13.4.11. [ERROR] FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
- 13.4.12. [ERROR] discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
- 13.4.13. [ERROR] discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
- 13.4.14. [ERROR] KeyError: 'username'
- 13.4.15. [ERROR] asyncio.exceptions.TimeoutError
- 13.4.16. [ERROR] discord.ext.commands.errors.CommandOnCooldown: This command is on cooldown. Try again in 10.5s
- 13.4.17. [ERROR] ValueError: invalid literal for int() with base 10: 'nhentai'
- 13.4.18. [ERROR] RuntimeError: Event loop is closed
- 13.4.19. [ERROR] ImportError: cannot import name 'commands' from 'discord'
- 13.4.20. [ERROR] ModuleNotFoundError: No module named 'discord'
- 13.4.21. [ERROR] aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443
- 13.4.22. [ERROR] sqlite3.OperationalError: no such table: users
- 13.5. 經驗分享
- 13.6. 經驗分享
- 13.7. 經驗分享
- 13.8. 經驗分享
- 13.9. 經驗分享
- 13.10. PGpenguin72:
- 14. ChatGPT:
- 15. 以上我想說的是:
- 16. >謝謝大家聽我的分享!

























