A cool pal ready to hang out in your Discord server
- node v8.0.0 or greater
- npm dependencies
Install globally with your package manager, or use nvm: https://github.com/creationix/nvm
git clone https://github.com/coolfriends/coolpal.git
cd coolpalnpm installLink the local executable to your /usr/bin path
npm linkcoolpal --helpRun bundle steps
npm run bundleRun bot
npm startRun bot as daemon with Forever from source directory
forever start --minUptime 100000000 ./dist/bin.bundle.jsWhen looking for a configuration file, the following are checked in order:
- CLI argument
- Default configuration file name
To start the bot without putting a token in the configuration file, export the following environment variable:
export COOLPAL_DISCORD_TOKEN="your-token"Make sure you have docker installed: https://docs.docker.com/engine/installation/
Build image from Dockerfile
docker build --no-cache -t coolpal .Run container in detached mode
docker run -d coolpalRun container and enter shell
docker run -it coolpalMake sure to run npm install to get the mocha dev dependency.
Then run the tests like so:
npm test
## Create docs
```bash
npm run docsnpm run format## Pre-commit
The `precommit` script in `package.json` runs on any add. This will enforce
good style. Make sure to have the latest dev-deps installed with `npm install`
- Get webpack working with a shebang line in
bin/coolpalso it can become a linked executable withnpm link