Open Half-Shot opened 6 years ago
It appears options.power
is already a number:
sorunome@sorunome-desktop repos/matrix-appservice-discord $ npm run adminme -- -p 12 -r blah -u blubb 1
> matrix-appservice-discord@0.3.0 adminme /home/sorunome/repos/matrix-appservice-discord
> node ./build/tools/adminme.js "-p" "12" "-r" "blah" "-u" "blubb"
Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
12
number
with
console.log(options.power);
console.log(typeof options.power);
As we have
{
alias: "p",
defaultValue: 100,
description: "The power to set",
name: "power",
type: Number,
typeLabel: "<0-100>",
},
so....the problem is upstream!
Yay! file a request to -bridge or js-sdk I guess.
https://github.com/Half-Shot/matrix-appservice-discord/blob/bc39208d2d8a35c758cb2f849ba975a671ee1298/tools/adminme.ts#L102