Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Deposit Command
- $eval
- try {
- var message = $messageAfterCommand
- var amount = message * 1
- var checkIfNumber = Number.isInteger(message)
- var verified = "";
- //sub to blackknight683
- if(typeof message === "string" && Bank$ID>1) {verified = ""};
- if(Bank$ID<=1 && typeof message !== "string") {verified = "**You need to start a bank account first!**" +
- " " + " " + "run `/open-account`**"};
- if(message>a$ID && typeof message !== "string") {verified = "**You can't deposit more than that you have :/**"};
- if(message<=0 && typeof message !== "string") {verified = "**You can't deposit negative or 0 Dollars.. :v**"};
- if(checkIfNumber !== false && a$ID>=message && message>0) {
- Bank$ID += amount;
- a$ID -= amount;
- verified = "**✅ Deposited `$" + encodeURIComponent(amount) + "` in your bank account!**";
- }} catch(OofyOofOof) {
- verified = "**you need to have atleast 2$ in both ur bank and wallet**" +
- " " + " " + "• `!open-account`" +
- " " + " " + "• `!work`";
- };
- $halt $get(verified)
- Withdraw Command
- $eval
- try {
- var message = $messageAfterCommand
- var amount = message * 1
- var checkIfNumber = Number.isInteger(message)
- var verified = "";
- //visit my website https://bots.blackknight683.tk
- if(typeof message === "string" && Bank$ID>1) {verified = ""};
- if(Bank$ID<=1 && typeof message !== "string") {verified = "**You need to start a bank acc. first!**" +
- " " + " " + "run `/open-account`**"};
- if(message>Bank$ID && typeof message !== "string") {verified = "You can't withdraw more than that you have :/"};
- if(message<=0 && typeof message !== "string") {verified = "**You can't withdraw negative or 0 Dollars.. :v"};
- if(checkIfNumber !== false && Bank$ID>=message && message>0) {
- Bank$ID -= amount;
- a$ID += amount;
- verified = "**✅ Withdrew `$" + encodeURIComponent(amount) + "` in your wallet!**";
- }} catch(OofyOofOof) {
- verified = "**you need to have atleast 2$ in both ur bank and wallet**" +
- " " + " " + "• `!open-account`" +
- " " + " " + "• `!work`";
- };
- $halt $get(verified)
- open-account Command
- $eval
- let c$ID = (c$ID == null) ? 0 : c$ID += $random{1|1}; c$ID += $random{1|1};
- let d$ID = (d$ID == null) ? 0 : d$ID = $random{1|1}; d$ID = $random{1|1}
- var reply = "";
- //Code Made By Oofy, Aka BlackKnight683
- if(c$ID === d$ID) {
- var Bank$ID = $random{100|100}
- reply = "**Succesfully opened a bank account!**"};
- if(c$ID !== d$ID) {
- reply = "**You already opened a bank account!**"};
- $halt $get(reply)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement