Skip to content

EnvironmentNoDocker

amp7368 edited this page Dec 16, 2022 · 1 revision

Without Docker

mysql

Install mysql to create a server Afterward installation, create a new database. You can set up connect to your local server and create new Database with the Mysql Workbench. Add a user for the bot if you want. The bot needs the following information for a connection to the created database:

  • username
    The username to connect with. Default is root I believe
  • password
    The password to connect with.
  • host
    The host of the machine the server is run on. If you're running the bot on the same machine, localhost should work.
  • port
    Default is 3306
  • database
    The name of the database within the server. Each server can have multiple databases.

Run the jar

The jar needs to be executed with the java 17+ runtime environment. If you were able to build, but can't execute make sure your JAVA_HOME and/or Path is set correctly

Navigate to the folder ${botsBuildDir}/ambrosia and run the jar with java -jar "./AmbrosiaADD-1.0-SNAPSHOT-all.jar" Replace 1.0 with the current version.

I made a file called start.bat to run the command without having to open command prompt.

java -jar "./AmbrosiaADD-1.0-SNAPSHOT-all.jar" -o true
@pause

This should start, then ask you to configure the generated database config

Head to Configuration for steps on how to configure the Bot

Clone this wiki locally