diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-31 21:48:49 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-31 21:49:12 -0400 |
| commit | bdef4a086948d9d55d672c8fdcac62d45b8e8ade (patch) | |
| tree | 826ba3da5c0b52325fc2c282a907845b42efb0a9 /test/economy.js | |
| parent | 7d2830b1934a9cddd0fac4e65642d259fc31e528 (diff) | |
| download | PokeBot-bdef4a086948d9d55d672c8fdcac62d45b8e8ade.tar.gz PokeBot-bdef4a086948d9d55d672c8fdcac62d45b8e8ade.tar.bz2 PokeBot-bdef4a086948d9d55d672c8fdcac62d45b8e8ade.zip | |
Revert "test"
This reverts commit 7d2830b1934a9cddd0fac4e65642d259fc31e528.
Diffstat (limited to 'test/economy.js')
| -rw-r--r-- | test/economy.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/economy.js b/test/economy.js deleted file mode 100644 index 3658ce8..0000000 --- a/test/economy.js +++ /dev/null @@ -1,40 +0,0 @@ -/** ************************************** - * - * Economy: Plugin for PokeBot that enables economy features. - * Copyright (C) 2018 TheEdge, jtsshieh, Alee - * - * Licensed under the Open Software License version 3.0 - * - * *************************************/ - -const db = require('quick.db'); -exports.get = async (userid) => { - const amount = await db.fetch(`money_${userid}`); - if (amount) { - return amount; - } - else { - await db.set(`money_${userid}`, 0); - return await db.fetch(`money_${userid}`); - } -}; - -exports.add = async (userid, money) => { - const amount = await db.fetch(`money_${userid}`); - if (amount) { - await db.set(`money_${userid}`, amount + money); - } - else { - await db.set(`money_${userid}`, money); - } -}; - -exports.subtract = async (userid, money) => { - const amount = await db.fetch(`money_${userid}`); - if (amount) { - await db.set(`money_${userid}`, amount - money); - } - else { - await db.set(`money_${userid}`, 0 - money); - } -}; |
