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
- Host: GitHub
- URL: https://github.com/nymphium/luakatsu
- Owner: Nymphium
- License: mit
- Created: 2015-01-16T19:03:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-25T14:44:08.000Z (over 9 years ago)
- Last Synced: 2025-06-27T19:41:11.029Z (7 months ago)
- Topics: aikatsu, lua
- Language: Lua
- Homepage: http://www.aikatsu.com/
- Size: 81.1 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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