An open API service indexing awesome lists of open source software.

https://github.com/nymphium/luakatsu

"Aikatsu! ~ idol katsudou ~" with Lua
https://github.com/nymphium/luakatsu

aikatsu lua

Last synced: 6 months ago
JSON representation

"Aikatsu! ~ idol katsudou ~" with Lua

Awesome Lists containing this project

README

          

# luakatsu (Lua + Aikatsu) v4.0
[Rubicure](https://github.com/sue445/rubicure) is **Ruby + Precure**, This is **Lua + [Aikastu](http://aikatsu.wikia.com/wiki/Aikatsu_Wiki)**

## install
`luarocks --local install luakatsu`

or

`luarocks --local --from=https://github.com/Nymphium/luakatsu/raw/master/ install luakatsu`

or

```sh
git clone https://github.com/Nymphium/luakatsu
cd luakatsu
luarocks --local make
```

## compatibility
After v1.3, non-idol characters' data are none here. And catchphrases are not supported.

## usage
```
$ lua

> require "luakatsu"
> print(type(Aikatsu))
table
> print(Aikatsu.version)
v4.0
```

### local table (`version >= v2.1-1`)
`local luakatsu = require "luakatsu.local"`

### `Aikatsu:find_birthday()` (`version >= v3.0-1`)

```lua
Aikatsu:find_birthday("12/03")
--> returns Kii
```

#### one-liner
```sh
lua -luakatsu -e "for m = 1, 12 do for d = 1, 31 do (function(x) return x and print(x.name, x.birthday) end)(Aikatsu:find_birthday(([[%02d/%02d]]):format(m,d))) end end"
```

### profile

```lua
print(Aikatsu.Akari.name) ---> 大空 あかり

print(type(Aikatsu.Akari.signature_songs) == 'table' and table.concat(Aikatsu.Akari.signature_songs, ', ') or Aikatsu.Akari.signature_songs) ---> Blooming♡Blooming

Aikatsu.Akari()

--[[
name 大空 あかり
actor 下地 柴野
birthday 04/01
zodiac_sign Aries
blood_type A
favorite_foods スイカ, チョコレート, ドーナツ, みかん, カレー
special_ablity ものまね
favorite_brand Dreamy Crown
type Cute
signature_songs Blooming♡Blooming
sing 遠藤 瑠香
affilication GOGO! いちご応援隊, Skips♪, Luminas, Luminas
school スターライト学園
--]]

```

### groups
```lua
Aikatsu.groups.Luminas()

--[[
name Luminas
members 大空 あかり, 氷上 スミレ, 新条 ひなき
songs リルビーリルウィン♪
--]]
```

### one-liner
```
$ lua -luakatsu -e Aikatsu\(\)
私のアツいアイドル活動、アイカツ! 始まります! フフッヒ
```

## License
MIT License