Code Monkey home page Code Monkey logo

Comments (13)

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

node_modules/discord.js/typings/index.d.ts:3799:14 - error TS2536: Type 'T' cannot be used to index type 'MappedChannelCategoryTypes'.

3799 ): Promise<MappedChannelCategoryTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js/typings/index.d.ts:3846:14 - error TS2536: Type 'T' cannot be used to index type 'MappedGuildChannelTypes'.

3846 ): Promise<MappedGuildChannelTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~

from healthznerbot.

raphaelbernhart avatar raphaelbernhart commented on May 30, 2024

Hello, thanks for creating the issue.

I will have a look later on today, for the Typescript issue.

[Config Check] Some env variable for discord is invalid
 ELIFECYCLE  Command failed with exit code 1.

Regarding this, can you please double check your .env file, one or more env variables seem to be not valid.
F.e. there should only be one HETZNER_TOKEN_* for each project.

Here is a guide to follow

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

just check config. all is correct

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

any response??

from healthznerbot.

raphaelbernhart avatar raphaelbernhart commented on May 30, 2024

Sorry for the late response, I have little time atm.

I will try to have a look this week. Can you share some more information? Like .env file (⚠️ please remove secrets beforehand), your system, which version of the bot are you using?

Thanks for the help :)

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

Are you have discord account?

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

There will be much easier for me to share all config etc

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

Bot version using is: 2.0.3

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

DISCORD_TOKEN=

The Channel ID must be entered

DISCORD_CHANNEL=1150907422995648632

API keys for the Hetzner API

NOTE: If you have multiple projects and want to add more then one to this bot

just increment the numbers after the 'HETZNER_TOKEN_' string

e.g. for three projects you would just have:

HETZNER_TOKEN_1=...

HETZNER_TOKEN_2=...

HETZNER_TOKEN_3=...

HETZNER_TOKEN_1=

How often status updates will occure (in minutes)

STATUS_UPDATE_INTERVAL=2.5

Time how long back to get metrics (minutes)

SERVER_METRICS_PERIOD=15

Language, currently are only german and english supported (de/en)

LANGUAGE=en

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

node_modules/discord.js/typings/index.d.ts:3799:14 - error TS2536: Type 'T' cannot be used to index type 'MappedChannelCategoryTypes'.

3799 ): Promise<MappedChannelCategoryTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js/typings/index.d.ts:3846:14 - error TS2536: Type 'T' cannot be used to index type 'MappedGuildChannelTypes'.
3846 ): Promise<MappedGuildChannelTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 2 errors.

from healthznerbot.

LunarLoom24 avatar LunarLoom24 commented on May 30, 2024

any response??

from healthznerbot.

raphaelbernhart avatar raphaelbernhart commented on May 30, 2024

@FrostyPinecone Can you share your .env file for the bot?

TBH I think there is just a misconfiguration. Can you please send me your .env file (⚠️ be sure to hide the secrets!).
I am a bit confused that you are getting Typescript errors as just the source code is written in ts but once built it should be just plain JS.

The easiest solution to get up and running is just to use the docker image (ghcr.io/raphaelbernhart/healthznerbot:2.0.4).

Just FYI: In the newest release (2.0.4), I improved the error handling and pinned down the node version to 18.19.0.
https://github.com/raphaelbernhart/healthznerbot/releases/tag/2.0.4

from healthznerbot.

raphaelbernhart avatar raphaelbernhart commented on May 30, 2024

I will close the issue due to inactivity. If the problem still persists, please write me. :)

from healthznerbot.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.