https://github.com/focabot/focabot-migrate
Migration scripts for FocaBot
https://github.com/focabot/focabot-migrate
Last synced: 11 months ago
JSON representation
Migration scripts for FocaBot
- Host: GitHub
- URL: https://github.com/focabot/focabot-migrate
- Owner: FocaBot
- Created: 2018-02-26T06:05:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T12:10:25.000Z (over 8 years ago)
- Last Synced: 2025-03-30T20:30:11.102Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FocaBot migrate
Migrate data from a FocaBot 0.x database to a FocaBot 1.x database.
This isn't required unless you want to keep all user data when upgrading.
For the sake of simplicity, data from the "player" module is excluded from the migration.
# Step by step instructions
- Put the migrate.js file inside the FocaBot (0.x) directory
- Open a Terminal / Command Prompt inside the directory and run those commands:
```
npm install gun@^0.7.9
node migrate
```
- A `data.db` file will be created inside the directory. Copy that file
over to the FocaBot 1.x directory (~/.focaBot/ if you installed it via npm)
# Redis
If you want to keep using redis for FocaBot, use the `migrate-redis.js` script instead.
Also, make sure to put `USE_REDIS=true` in the `.env` file.