Maimai DX+ Discord Bot: Side project for Discord bot which connects to maimai DX NET and collects user records and history.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Only prerequisites required is Python 3.6+, with pip3 installed.
Below is a step-by-step guide on setting up the program to get a development environment running.
- Clone this repo.
git clone [email protected]:kingofboxes/maibot-discord.git
- Change directory to of the cloned repo and create a new virtual environment.
cd maibot-discord
python3 -m venv .venv
- Activate the virtual environment.
. .venv/bin/activate
- Install the requirements using pip3.
pip3 install -r requirements.txt
- Create a new file called '.env' as follows.
touch .env
- Add the following lines:
DISCORD_TOKEN=
MONGO_USR =
MONGO_PWD =
MONGO_HOSTNAME =
MONGO_PORT =
- Run the program.
./start.py
- If done correctly, it should say that your bot has connected.
- User profile.
!user
will send a Discord embed of your maimai DX NET profile in the channel. - Search.
!search songname
will search the records for a song that you've played in the past. - Recents.
!recent n (1 <= n <= 50)
will display the n-th latest song that you've played. 'n' is optional, but if not specified, returns latest track played.
- Use
!map segaid
to map your Discord ID to a SEGA ID. - Use
!password password
to log in to your maimai DX NET profile.
Your password is not stored anywhere on the bot. The cookie is saved and reused for future logins when the session expires.