Support /plu/ral webhook proxying
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// @ts-check
|
||||
|
||||
const {reg, writeRegistration} = require("../src/matrix/read-registration")
|
||||
const {prompt} = require("enquirer")
|
||||
|
||||
;(async () => {
|
||||
/** @type {{api_key: string}} */
|
||||
const apiKeyResponse = await prompt({
|
||||
type: "text",
|
||||
name: "api_key",
|
||||
message: "Paste your personal /plu/ral API key"
|
||||
})
|
||||
|
||||
reg.ooye.plu_ral_api_key = apiKeyResponse.api_key
|
||||
writeRegistration(reg)
|
||||
console.log("Saved. This change should be applied instantly.")
|
||||
})()
|
||||
Reference in New Issue
Block a user