iT邦幫忙

2021 iThome 鐵人賽

DAY 30
0
AI & Data

建立FF14資訊Discord chatbot系列 第 30

[DAY 30]鐵人賽完賽結語

今天是鐵人賽最後一天

我把之前所整理的資料來源一併附上

有些功能其實已經想好大概怎麼實現了,但在30天內其實有點趕所以我沒放上

像是將訊息透過詞向量的方式進行主題分類並推薦該主題的攻略網站

然後這是我的github連結

目前程式碼還在整理中,會不定時更新~

如果有人玩FF14剛好是在Gungnir伺服器的話,也歡迎來我們公會discord串場,不是的話好像也沒關係~

公會discord連結

raw data

https://github.com/thewakingsands/ffxiv-datamining-cn

https://github.com/xivapi/ffxiv-datamining/tree/master/research

https://githubmemory.com/repo/karashiiro/xiv-resources

功略網

https://ff14.org/topic/relic.htm

https://kknews.cc/zh-tw/home/qn6p4pg.html

discord

Discord Commands: List of the most useful Discord commands and how to use them‍

【Proladon】如何看懂官方 Discord API 文件 (Python)

https://realpython.com/how-to-make-a-discord-bot-python/

https://hackmd.io/@kangjw/Discordpy%E6%A9%9F%E5%99%A8%E4%BA%BA%E5%BE%9E0%E5%88%B01%E8%B6%85%E8%A9%B3%E7%B4%B0%E6%95%99%E5%AD%B8

embed
https://python.plainenglish.io/send-an-embed-with-a-discord-bot-in-python-61d34c711046

om_member_join問題
https://www.coder.work/article/5001071

reply user message
https://github.com/Rapptz/discord.py/blob/master/examples/reply.py

按鈕樣板
https://stackoverflow.com/questions/67722188/add-button-components-to-a-message-discord-py

FF14 API

https://github.com/xivapi/xivapi-py
https://xivapi.com/docs

時間轉換

Python3 取得現在時間,設定臺灣時區

actree安裝問題

https://blog.csdn.net/Airstudy/article/details/112506317?utm_medium=distribute.pc_r[…]efault~baidujs_title~default-0.control&spm=1001.2101.3001.4242

import ahocorasick

def build_actree(wordlist):
    actree = ahocorasick.Automaton()
    for index,word in enumerate(wordlist):
        actree.add_word(str(word), (index, str(word)))
    actree.make_automaton()
    return actree


if __name__ == '__main__':
    #招待碼
    test_list = ["坐騎","任務","軍團"]
    send = "請問軍團相關資訊"
    actree = build_actree(wordlist=test_list)
    send_list = [i[1][1] for i in actree.iter(send)]

拍賣查詢

串universalis API寫法
https://gitlab.com/omniowl-public/borel/-/blob/master/market_board.py

API資料return結果(json格式)
12531為物品ID
https://universalis.app/api/Elemental/12531?entries=5

詞向量、主題模型

https://www.kaggle.com/jerrykuo7727/word2vec

感謝各位有在看我文章的人,明年如果再被抓去參加鐵人賽的話再見啦^^


上一篇
[DAY 29]用GooseMod輕鬆改變discord主題
系列文
建立FF14資訊Discord chatbot30

尚未有邦友留言

立即登入留言