lonnstyle Posted December 12, 2020 Share Posted December 12, 2020 (edited) 相信不少玩家都有使用Discord作為聊天溝通的軟件 但有沒有想過使用Discord機器人方便自己日常查詢物品/紫卡價格,當前平原日夜循環等操作? 就著 @XiaoXiang_Meow小翔大佬的機器人框架,本人開發了一系列MOD以查詢Warframe遊戲內/wf.m上的數據 Github repo鏈接:https://github.com/lonnstyle/DiscordBotMods 此Github repo會一直保持更新,也歡迎在本帖回復告訴我想要改善的部分/回報Bug@XiaoXiang_Meow就這些MOD修改過後的整合版本 安裝教學: 於repl.it創建一個Python專案 將機器人框架除了REAMD.md以外的文件全部複製到自己創建的repl.it專案上 將MOD複製到專案的cmds文件夾內 如使用整合版本可以跳過此步 dict文件夾請放置於cmds文件夾同層 於Discord客戶端當中開啟設置→外觀→進階→開發者模式 於Discord官網上登入並跳轉到開發者面板創建屬於自己的機器人程式 將自己機器人的Token(Bot分頁中複製)以及自己的Discord ID(於Discord內對自己頭像點右鍵複製)分別粘貼到setting.json當中的TOKEN和owner欄位中取代掉原本的內容 將機器人框架與MOD兩個repo當中寫著需要用-pip install的package安裝到repl.it專案中 按照教學將機器人保持常駐 於Discord的開發者面板中Bot分頁開啟Privileged Gateway Intents下的兩個權限 從OAuth2分頁中的Scopes選擇bot,並從BOT PREMISSIONS(機器人權限)當中最少選擇View Channel(瀏覽頻道),Send Message(發送訊息),Manage Message(管理訊息),Read Message History(瀏覽訊息歷史)權限;且推薦開啟Embed links(嵌入鏈接)權限,可能會在後續更新中使用到。 複製自動生成的鏈接,打開並將機器人邀請到你的伺服器當中(你需要有該伺服器的管理權限) Edited March 23, 2021 by lonnstyle Rename topic 3 Link to comment Share on other sites More sharing options...
lonnstyle Posted March 7, 2021 Author Share Posted March 7, 2021 機器人已經更新 GitHub的專案也已經更名+重定向到這裡 同時亦設置了一個Discord伺服器提供一個公用和測試(開發更新內容)的版本給大家使用 也歡迎大家來伺服器裡試用和反饋 1 Link to comment Share on other sites More sharing options...
lonnstyle Posted May 25, 2021 Author Share Posted May 25, 2021 已支持Discord的Slash Command 1 Link to comment Share on other sites More sharing options...
lonnstyle Posted March 10 Author Share Posted March 10 已釋出v3.0.0pre-release 將discordpy更換為py-cord 新增記錄日誌 少量優化 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now