Your solution to a great Discord Community! Adding levels, role management, achievements, profiles, image search, games, and many more!
⚠️ Notice: This repository is no longer used and will no longer be updated. Miki has been moved private source into a monorepo to further develop and integrate all modules. The repository will be left up for any learning purposes. IT should still work, but you may have a bad time getting it in a good place.
Platform | Status |
---|---|
Ubuntu | |
Docker |
Currently the Miki API is private, meaning you won't have access to the leaderboards until the API is released publicly. More information will be available here when that happens.
Note that it is currently not possible to build the entire project without access to private dependencies. If you wish to contribute and need help to circumvent the private dependencies, DM Zenny#0001
.
Do not ask related questions in the support server, as a majority of the people there will not be able to assist you.
- Clone the miki bot repository Windows, Linux
$ git clone https://github.com/mikibot/bot && cd bot
-
Download PostgreSQL and set up a database called
Miki
. -
Copy
launchSettings.template.json
and fill in your PostgreSQL properties.
$ cp src/Miki/Properties/launchSettings.template.json src/Miki/Properties/launchSettings.json
- Run tools/setup.sh and follow the settings.
$ tools/setup.sh
- Clone the Miki bot repository
$ git clone https://github.com/mikibot/bot && cd bot
- Copy example.env and fill in your properties.
$ cp example.env .env
-
Ensure you have the environment variable
PRIVATE_NUGET_PAT
set in your environment. This requires a valid PAT token for Miki's private dependencies, which can only be granted by the Miki team. -
Docker-compose
$ docker-compose up
These will likely be fixed in the near future:
-
A lack of API keys might be giving you issues in the
DonatorModule
andFunModule
, the simplest way to solve it is to just comment out the lines that raise exceptions and the lines that reference the client (there shouldn't be more than 2 reference max. -
Setting up your development environment requires two manual steps in the database.
- Add a configuration row in the
Configuration
table, filling in at least theId
andToken
fields according to your test Discord bot. - Within the
Users
table, add a new User with an ID of1
. This user serves as your global Miki bank, so make sure that you set its currency to a high amount.