Comments (13)
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.
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.
just check config. all is correct
from healthznerbot.
any response??
from healthznerbot.
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 (
Thanks for the help :)
from healthznerbot.
Are you have discord account?
from healthznerbot.
There will be much easier for me to share all config etc
from healthznerbot.
Bot version using is: 2.0.3
from healthznerbot.
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.
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.
any response??
from healthznerbot.
@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 (
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.
I will close the issue due to inactivity. If the problem still persists, please write me. :)
from healthznerbot.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from healthznerbot.