-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bot/modules/nostr: convert to TS #627
base: main
Are you sure you want to change the base?
Conversation
Convert bot/modules/nostr to TypeScript. Specified "lib" property in tsconfig.json because otherwise TypeScript compiler complains about usage of `Promise.any` in bot/modules/nostr/index.ts: ``` Property 'any' does not exist on type 'PromiseConstructor'. Do you need to change your target library? Try changing the lib compiler option to 'es2021' or later. ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @webwarrior-ws when I type /nostr
have an Error
and when type /npub
with a correct npub this the bot says:
⚠️ ERROR Not a valid NIP-19 (https://github.com/nostr-protocol/nips/blob/master/19.md) npub. Please check your input.
Decode nostr secret key from environment variable using hex encoding. Also replace requires with imports.
d627989
to
7e0587c
Compare
@Catrya take a look, I added a commit that should fix the error. Assuming |
5adbdc2
to
5e7ad23
Compare
Hi, @webwarrior-ws it keep getting the same 2 errors: with Anyway, what do you think @grunch about removing the |
Convert bot/modules/nostr to TypeScript.
Specified "lib" property in tsconfig.json because otherwise TypeScript compiler complains about usage of
Promise.any
in bot/modules/nostr/index.ts: