SANCTUM is an open-source Discord MMO, with 200+ players.
You will need:
Install this first before going through the steps!
Clone the repo.
You can use programs like Git, SourceTree or simply download the project, although you won't be able to submit changes as easily.
# With Git installed, you can do this command
git clone https://github.com/TimRuswick/SANCTUM
Rename the .envdev
file to .env
, and fill out tokens and channels.
On Windows, you will get an error message about having to give the .env file a name. You can circumvent it by adding an extra period to the file name.
RENAME IT TO .env.
WITH THE EXTRA PERIOD, and Windows will automatically remove it for you! Poof, it's like magic.
Don't place any of your tokens in .envdev
, and push them to GitHub! If you do though, consider them compromised and then reset them.
Navigate via command-line to a bot's folder, install dependencies, and run it!
Make sure you're in the project folder! On Windows, you can hold Shift and Right Click the folder to get the option of a command prompt, inside that folder.
cd "SANCTUM" # Navigate to project folder
npm i # For modules dependencies
cd "ADAM" # Choose a bot
npm i # Install dependencies
node adam.js # Run the bot
???
Profit! You did it, unless something has happened along the way. Developer luck says yes.
We recommend nodemon for reloading bots automatically, instead of Ctrl+C
ing in and out of bots when you need a restart. Totally optional, and you can use whatever workflow you like.
We're looking for:
Join the SANCTUM Developers Discord for more info!
Cannot find module 'dotenv'
Cannot find module 'sync-request'
You need to run npm i
in order to have npm install the modules for you, according to the package.json in the folder. Run this command in two places.
UnhandledPromiseRejectionWarning: Error: An invalid token was provided.
This may likely be that you didn't rename .envdev
to .env
. Scroll up for instructions on how to do so on Windows, and avoid the error message when not giving a name to a file.
Make sure you also fill in your tokens and fields too!
Feel free to join the SANCTUM Developers Discord for help on how to setup the bots, we won't bite! I think. You can also use the Issues tab here on GitHub!