0
0
Fork 0

Add nightbot's show subcommand

This commit is contained in:
Oliver-Akins 2023-02-19 20:46:16 -07:00
parent a5dd1aac4e
commit d1dbdd3356

View file

@ -26,15 +26,15 @@ const subcommands: {[index: string]: subcommand} = {
})).payload;
},
},
// "show": {
// modOnly: false,
// async handler(meta, req) {
// return (await req.server.inject({
// method: `GET`,
// url: `/${meta.channel}/game`
// })).payload;
// },
// },
"show": {
modOnly: false,
async handler(meta, req) {
return (await req.server.inject({
method: `GET`,
url: `/${meta.channel}/game`
})).payload;
},
},
"guess": {
modOnly: false,
async handler(meta, req) {