
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@59naga/gbf-data
Advanced tools
src/chars
-> dist/chars.json
gbf-teamsimulatorで使用します。
src/raid
-> dist/raid.json
gbf-raid-serverでtwitter検索に使用するボス名の一覧をjsonで出力しdist
に保存しています。
axiosを使用してunpkg.comから直接使用するか、jsonファイルをダウンロードしてrequire/import
してください。
import createIoClient from 'socket.io-client';
import bosses from './gbf-raid-bosses.json'
createIoClient('https://gbf-raid-server.herokuapp.com/')
.emit('gbf-raid-server:cache', (error, tweets) => {
console.log(tweets);
// [{id: '451A60CE', name: 'Lv100 ティアマト・マグナ=エア', createdAt: '2018-07-06 10:26:56'}, {...}]
})
.on('gbf-raid-server:tweet', (tweet) => {
console.log(tweet);
// {"id":"685D3F6E","name":"Lvl 100 Tiamat Omega Ayr","memo":"","urlOrigin":"twitter.com/0chokdee0/status/1016741472874291200", /*...*/ ,"createdAt":"2018-07-11 02:50:31"}
const boss = bosses.find(boss => tweet.name === boss.name || tweet.name === boss.name_en)
console.log(boss)
// {"alias":"lv100-tiamat-omega-ayr","category":"impossible1","id":"","name":"Lv100 ティアマト・マグナ=エア","name_en":"Lvl 100 Tiamat Omega Ayr","image":"https://pbs.twimg.com/media/CT6cNUBUAAETdz6.jpg","element":"Wind"}
});
jsonは一次元配列でボスごとにオブジェクトで下記の情報を持ちます。
alias: string
…id
が定義できていないため、現状id
の代わりに識別子として使用する文字列ですcategory: string
…共闘部屋を基準に見た共闘の種別。id: string
…実際のゲーム画像などで使用されている10桁の数値。ティアマトマグナHL…2040020000
など。現在管理できていません。name: string
…twitterの救援ツイートで使用されるボスの正式名称(日本語版)。name_en: string
…twitterの救援ツイートで使用されるボスの正式名称(英語版)。image: string
…twitterで添付される画像。日本語のものを使用element: "None" | "Fire" | "Water" | "Earth" | "Wind" | "Light" | "Dark"
…ボスの属性。GBF-Raidersから転載していますMIT
FAQs
build granbluefantasy json files using yaml
The npm package @59naga/gbf-data receives a total of 7 weekly downloads. As such, @59naga/gbf-data popularity was classified as not popular.
We found that @59naga/gbf-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.