How to change config save location? #1077
-
Hi. I am trying to run two of these at once in ubuntu. The only problem is that in ubuntu both of my music bots get/save their config to the home folder so when i try to use both at once i end up running the same bot twice (in windows it was fine, it got its config from the folder that the bot was located in). is there any way to change where the config is saved? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
JMusicBot uses your working directory when accessing files. Use |
Beta Was this translation helpful? Give feedback.
-
Advanced config options are explained here. You can specify the location of your existing config location using the |
Beta Was this translation helpful? Give feedback.
Advanced config options are explained here.
You can specify the location of your existing config location using the
-Dconfig=
flag, providing either an absolute or relative path. For example,-Dconfig=configs/first_config.txt
would look for a config file called "first_config.txt" relative to your starting location in a folder called "configs". By default, JMusicBot looks for "config.txt" in the working directory.