45 lines
944 B
JSON
45 lines
944 B
JSON
{
|
|
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
|
|
"name": "ninelands-game",
|
|
"post": {
|
|
"entrypoints": {
|
|
"default": {
|
|
"entry": "splash.html",
|
|
"height": "tall",
|
|
"inline": true
|
|
},
|
|
"game": {
|
|
"entry": "game.html"
|
|
}
|
|
}
|
|
},
|
|
"server": {},
|
|
"permissions": {
|
|
"redis": true
|
|
},
|
|
"menu": {
|
|
"items": [
|
|
{
|
|
"label": "Ninelands: create today's post",
|
|
"description": "Creates today's daily map post if it does not exist yet.",
|
|
"location": "subreddit",
|
|
"forUserType": "moderator",
|
|
"endpoint": "/internal/on/menu/new-post"
|
|
}
|
|
]
|
|
},
|
|
"scheduler": {
|
|
"tasks": {
|
|
"daily-post": {
|
|
"endpoint": "/internal/scheduler/daily-post",
|
|
"cron": "1 0 * * *"
|
|
}
|
|
}
|
|
},
|
|
"triggers": {
|
|
"onAppInstall": "/internal/on/app/install"
|
|
},
|
|
"scripts": {
|
|
"dev": "npm run watch"
|
|
}
|
|
}
|