A discord bot for everyone's favorite video game feature...lootboxes! Manage and open lootboxes for users on your discord server.
- Latest Node
- Yarn
- Discord Bot User Account
- Create a bot user
- Click New App
- Give it a name and description
- Once bot is created, scroll down and click Create a Bot User
- Click link next to token to get the bot token
- Make note of the token ( we will need it)
- Add bot to your server
- Get your user id in discord
- Optionally get your guild id
git clone https://github.com/astraldragon/lootbot
cd lootbot
Next create a .env file with the following format:
OWNER_ID=<your user id>
DISCORD_TOKEN=<bot token>
GUILD=<optional guild id>
Install dependencies and bootstrap the project
yarn # install dependencies
yarn db:migrate # create dev database
yarn db:seed # optional if you want to pre-seed some sample data, requires the GUILD option in .env or as an environment variable
yarn start # or yarn start:watch, starts the project
See Usage
When contributing a feature or bug fix make sure to run the tests and stylechecks and you should be good to go!
yarn test # yarn test:watch, run the tests
yarn lint # yarn lint:fix, check codestyle
Made available under the MIT License