sleeyax / aternos-discord-bot

Discord bot to start & stop a Minecraft server automatically
https://hub.docker.com/r/sleeyax/aternos-discord-bot/tags
MIT License
79 stars 93 forks source link

Missing environment variables! #76

Closed rttyy closed 1 year ago

rttyy commented 1 year ago

running on replit, I wrote in the shell : "$ set DISCORD_TOKEN= $ set ATERNOS_SESSION= $ set ATERNOS_SERVER="

sleeyax commented 1 year ago

Set isn't the right command to set environment variables on linux. Just write VAR=value instead. Note that these are temporary values, you should store them in your shell config file to make it permanent. See this article (or google it yourself): https://phoenixnap.com/kb/linux-set-environment-variable


From: rttyy @.> Sent: Saturday, January 21, 2023, 3:22 PM To: sleeyax/aternos-discord-bot @.> Cc: Subscribed @.***> Subject: [sleeyax/aternos-discord-bot] Missing environment variables! (Issue #76)

running on replit, I wrote in the shell : "$ set DISCORD_TOKEN= $ set ATERNOS_SESSION= $ set ATERNOS_SERVER="

— Reply to this email directly, view it on GitHubhttps://github.com/sleeyax/aternos-discord-bot/issues/76, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHHQIZU4IIJWI7DZJRZAFK3WTPWKZANCNFSM6AAAAAAUCNR5JY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rttyy commented 1 year ago

Thanks !!

rttyy commented 1 year ago

image image the problem persists

sleeyax commented 1 year ago

Lookup "replit environment variables" in replit docs or Google, there's probably a specific way to set them.


From: rttyy @.> Sent: Saturday, January 21, 2023 4:50:25 PM To: sleeyax/aternos-discord-bot @.> Cc: Sleeyax @.>; Comment @.> Subject: Re: [sleeyax/aternos-discord-bot] Missing environment variables! (Issue #76)

[image]https://user-images.githubusercontent.com/79284347/213874980-561994e5-fc11-427b-adcc-617a41afdd55.png [image]https://user-images.githubusercontent.com/79284347/213874991-869fa6d9-dd52-4a47-8756-cdcf276b7a7e.png the problem persists

— Reply to this email directly, view it on GitHubhttps://github.com/sleeyax/aternos-discord-bot/issues/76#issuecomment-1399276653, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHHQIZQW5PVS7X4LMCG2ED3WTQAUDANCNFSM6AAAAAAUCNR5JY. You are receiving this because you commented.Message ID: @.***>

rttyy commented 1 year ago

image thanks, but now i have new errors

sleeyax commented 1 year ago

Did you change anything in the source code? Go.mod shouldn't contain the things the compiler warns about. Also, make sure to use the version of go that is listed there.


From: rttyy @.> Sent: Saturday, January 21, 2023, 6:02 PM To: sleeyax/aternos-discord-bot @.> Cc: Sleeyax @.>; Comment @.> Subject: Re: [sleeyax/aternos-discord-bot] Missing environment variables! (Issue #76)

could you help me ?

— Reply to this email directly, view it on GitHubhttps://github.com/sleeyax/aternos-discord-bot/issues/76#issuecomment-1399289264, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHHQIZUNCPMSQ675HATLR33WTQJBLANCNFSM6AAAAAAUCNR5JY. You are receiving this because you commented.Message ID: @.***>

rttyy commented 1 year ago

I'm going to reset the project and I'll tell you

sleeyax commented 1 year ago

Hey I just ran it myself on replit, you need to configure the environment variables in the secrets section.

rttyy commented 1 year ago

hi ! thank you very much, I would just like to be sure, what is the command to run the bot (with the source code)

sleeyax commented 1 year ago

The command to use is in the readme. It's the one you used. I think you should be able to hit 'run' on replit somewhere directly though.

rttyy commented 1 year ago

Thank you 😊! It works perfectly on remplit and on my Linux computer