Skip to content
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

[Bug] Not reading the config file #1791

Open
3 tasks done
WildFyr16 opened this issue Jan 3, 2025 · 0 comments
Open
3 tasks done

[Bug] Not reading the config file #1791

WildFyr16 opened this issue Jan 3, 2025 · 0 comments

Comments

@WildFyr16
Copy link

WildFyr16 commented Jan 3, 2025

Bug Description

I am trying to set up JMB to start on system startup. I have an in-home server that runs a bunch of stuff, and every time I lose power or the server updates/shuts down/whatever, I have to manually remote in or go to the server rack to start JMB. So I went into the Startup Applications Preferences and am trying to add the Java arguments to start the bot on boot up. When adding java -jar /home/wildfyr/Desktop/MusicBot/JMusicBot.jar instead of starting the bot, it asks me to input a bot token, even though the config has an existing bot token. The config file resides in the location where it was initially created, /home/wildfyr/Desktop/MusicBot. When I click cancel, the pop up tells me it created a config file in /home/wildfyr. However, no such config file exists and the bot does not start.

Edit: It does work find when spliting up the commands, such like cd /home/wildfyr/Desktop/MusicBot && java -jar JMusicBot.jar it works fine and starts no problem. But not when making it all one command.

Steps to Reproduce

Open a terminal line
Run the start up args java -jar /home/user/wherever/your/bot/is
Does not read the config file

Expected Result

I expect the bot to read the config file in /home/wildfyr/Desktop/MusicBot and start normally

Debug Output

I cannot do this as the bot does not actually start because of this issue

Additional Info

No response

Checklist

JMusicBot Version

0.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant