Instructions to run WildBeast on Linux
We need a few prerequisites:
- A text editor. We're going to use
nano, but you can use anything you'd like.
- 2.Install Node.js with the following command:sudo apt-get install -y nodejs
Postgres is available to install by default on Ubuntu, just run the following code in your terminal:
sudo apt install postgresql postgresql-contrib
We need to do some extra steps to prepare Postgres for use:
- 1.Create a new user for WildBeast to use:sudo -u postgres createuser --interactiveThe new user does not need to be a superuser, and can be called whatever you want.
- 2.Finally, create a new database:sudo -u postgres createdb wildbeast(We used
wildbeasthere as the database user, change it if you used something else in the previous step)
Clone the code and install the required modules:
git clone https://github.com/TheSharks/WildBeast.git
Open the example configuration file in
nanoand enter your details:
When you're done, save the file as
Before we can start, we need to initialize the database. Run the following code:
npm run-script migrations:up
Now for the fun part, testing to see if it worked!
Start WildBeast for the first time with the following command:
You should see something similar to the following if everything went well
19:11:41 [info] Gateway: Client ready
19:11:41 [info] Gateway - shard 0: Gateway ready
Test if your bot works by running the