Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
v1.3.3 - dataManager Patch
Browse files Browse the repository at this point in the history
Patched an issue with making new profiles in Margarine. Tables weren't getting the right data.
  • Loading branch information
AurelicButter committed Jun 19, 2020
1 parent d6e5b04 commit 33ebff8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MargarineBot - Version: Release 1.3.2
# MargarineBot - Version: Release 1.3.3
![License](https://img.shields.io/github/license/Butterstroke/MargarineBot.svg?style=flat-square) ![Support Server](https://discordapp.com/api/guilds/303253034551476225/widget.png)

<b>Dependencies</b>
Expand Down
4 changes: 2 additions & 2 deletions assets/settingsExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"token": "Token Key",
"prefix": "Prefix",
"build": {
"version": "Release 1.3.2",
"releaseDate": "June 17th, 2020"
"version": "Release 1.3.3",
"releaseDate": "June 18th, 2020"
},
"database": "./assets/MargarineData.sqlite"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "margarine",
"version": "1.3.1",
"version": "1.3.3",
"description": "Javascript bot using the Klasa framework",
"main": "index.js",
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions utilities/dataManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ module.exports = function dataManager(args, values, table) {
if (data) { return console.log("ERROR: This user already exists"); }

db.prepare("INSERT INTO users (userID, credits, rep, cooldowns, profiles) VALUES (?, ?, ?, ?, ?)").run(values[0], values[1], 0, JSON.stringify({ credit: Date.now(), rep: null }), JSON.stringify({ Anilist: "", MAL: "" }));
db.prepare("INSERT INTO awards (userID) VALUES (?)").run(values);
db.prepare("INSERT INTO awards (userID) VALUES (?)").run(values[0]);

db.prepare("INSERT INTO fishing (userID) VALUES (?)").run(values);
db.prepare("INSERT INTO harvest (userID) VALUES (?)").run(values);
db.prepare("INSERT INTO product (userID) VALUES (?)").run(values);
db.prepare("INSERT INTO fishing (userID) VALUES (?)").run(values[0]);
db.prepare("INSERT INTO harvest (userID) VALUES (?)").run(values[0]);
db.prepare("INSERT INTO product (userID) VALUES (?)").run(values[0]);
break;
case "select":
var data;
Expand Down

0 comments on commit 33ebff8

Please sign in to comment.