SteemPH Bot [KuyaBot] Update 07.08.18 - Trivia, Mining, and a whole lot more

in utopian-io •  3 months ago

Repository

https://github.com/cloh76/Activity-Bot

It has been a few months since I updated and created a post about the SteemPH Community bot - KuyaBot. I have not had much time to work on updates and features that I have wanted for the longest time to implement. I took this weekend to try and get back on track amidst my busy schedule and was able to get some minor features added for the Community Bot.

My plan has always been to reduce the number of bots supporting the SteemPH Discord Server and we have already started down the path and removed 3 bots by integrating some of the functions and more widely used features into KuyaBot. I feel we have now reached a good balance of Bots with unique features to support the community.

With a little more effort, I continue to integrate and introduce new functions and features into KuyaBot. This weekend I worked on setting up additional activities which the community has asked for as well as features I previously set out to add but have been struggling to figure out.

New Features

As usual, you will find screenshots and code at the end of this post in order to stay organized.


Games and Fun

[Trivia] - Adding to the number of activities that are available to our community, I am proud to announce Trivia. It took me a little bit of time, but I was finally able to code a trivia game into KuyaBot using the Open Trivia Database. The community was previously asking for this function and although I knew what I wanted to do, I couldn't figure out how to make it happen. Since I am now using DBM to create and organize my bots, it helped make progress a bit easier. The trivia code allows all community users to join in and compete to see who can answer the most random multiple choice questions.

[Mining] - This fun activity is exactly what it sounds like. Community members can purchase a PickAxe and mine for an assortment of random items within Discord. Just a few examples of random things participants will be able to find are Gems, Gold, Special Items - all which can be sold for Digital Pesos which they can add to their SteemPH Discord Bank accounts. They will also be able to randomly find Digital Pesos while mining as well as Digital Bitcoin. Currently, the Digital Bitcoin will be stored as a separate currency in users SteemPH Discord Bank, but this system will eventually pave the way for community members to earn the right to mine using my personal Bitcoin miners and earn real Bitcoin which will be stored and available to use.

Community

[Bank 2.0] - I have updated the Bank to include a reputation system which will not only serve as a system for future Buy/Sell features, but also for community involvement and support. Within the Bank, a function to store your Bitcoin balance has also been added. This is currently only a storage for Digital Bitcoin earned from the mining game mentioned above but is the foundation for a future mining reward system that will be incorporated which will focus on rewarding active and contributing participants of the community.

[KuyaBot Upvotes Using Earned Discord Digital Pesos] - Although not yet complete, I am getting closer to finishing this function. Currently, all activity within Discord earns community members Discord Digital Pesos. My plan is for users to one day be able to use those banked Digital Pesos to pay KuyaBot for Upvotes on their Steemit, Utopian.io, DTube, and DLive content. I currently have the base code which allows the bot to upvote a post randomly by sending KuyaBot Digital Pesos and am continuously working on the code so users can specify the exact post they want to upvote. I'm hoping I can figure it out within the next week. More to come on this update!

Ongoing Roadmap and things to come

[Games] - I am always trying to think of new games to add which can use the Digital Peso economy system I have built into the bot. Pokemon is still a work in progress and is a little more complicated to code given the dynamic complexity of the game. I'm trying to think of other games which can utilize both the Discord and Steem environment to help the community thrive.

[Digital Peso Payment for Upvotes] - This is and will always be the most important and key update I continue to work on (at least until it is complete). This system will allow server members to use Digital Pesos as a form of payment for Upvotes. I continue to run into roadblocks, but as you can see from the update above, I am getting closer.

Dependencies and Links

Screenshots and Code Samples

Trivia


{
  "name": "trivia",
  "permissions": "NONE",
  "restriction": "1",
  "_id": "Qwlbk",
  "actions": [
    {
      "member": "1",
      "varName": "",
      "info": "3",
      "storage": "1",
      "varName2": "username",
      "name": "Store Member Info"
    },
    {
      "token": "",
      "user": "",
      "pass": "",
      "url": "https://opentdb.com/api.php?amount=5&category=9&difficulty=easy&type=multiple",
      "path": "",
      "storage": "1",
      "varName": "triviaapi",
      "debugMode": "0",
      "headers": "",
      "name": "Store Json From WebAPI"
    },
    {
      "title": "Welcome!",
      "author": "",
      "color": "RANDOM",
      "timestamp": "false",
      "url": "",
      "authorIcon": "",
      "imageUrl": "",
      "thumbUrl": "",
      "storage": "1",
      "varName": "embedwelcome",
      "name": "Create Embed Message"
    },
    {
      "storage": "1",
      "varName": "embedwelcome",
      "message": "Welcome to trivia!\nWe hope you enjoy this trivia.\n\nThis trivia will focus on general knowledge. \n",
      "name": "Set Embed Description"
    },
    {
      "storage": "1",
      "varName": "embedwelcome",
      "message": "Trivia questions and answers via https://opentdb.com/\n",
      "footerIcon": "",
      "name": "Set Embed Footer"
    },
    {
      "storage": "1",
      "varName": "embedwelcome",
      "channel": "0",
      "varName2": "",
      "name": "Send Embed Message"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "Let's get right into the first question shall we?",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "behavior": "0",
      "jsonObjectVarName": "triviaapi",
      "path": "results[0].question",
      "storage": "1",
      "varName": "question1",
      "name": "Parse From Stored Json"
    },
    {
      "behavior": "0",
      "jsonObjectVarName": "triviaapi",
      "path": "results[0].correct_answer",
      "storage": "1",
      "varName": "1correctanswer",
      "name": "Parse From Stored Json"
    },
    {
      "behavior": "0",
      "jsonObjectVarName": "triviaapi",
      "path": "results[0].incorrect_answers[0]",
      "storage": "1",
      "varName": "1incorrectanswer",
      "name": "Parse From Stored Json"
    },
    {
      "behavior": "0",
      "jsonObjectVarName": "triviaapi",
      "path": "results[0].incorrect_answers[1]",
      "storage": "1",
      "varName": "1incorrectanswer2",
      "name": "Parse From Stored Json"
    },
    {
      "behavior": "0",
      "jsonObjectVarName": "triviaapi",
      "path": "results[0].incorrect_answers[2]",
      "storage": "1",
      "varName": "1incorrectanswer3",
      "name": "Parse From Stored Json"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "min": "1",
      "max": "3",
      "name": "Generate Random Number"
    },
    {
      "title": "Question",
      "author": "",
      "color": "RANDOM",
      "timestamp": "false",
      "url": "",
      "authorIcon": "",
      "imageUrl": "",
      "thumbUrl": "",
      "storage": "1",
      "varName": "question1embed",
      "name": "Create Embed Message"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "1",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "19",
      "name": "Check Variable"
    },
    {
      "storage": "1",
      "varName": "question1embed",
      "message": "${tempVars(\"question1\")}\n\nYour Answers:\n${tempVars(\"1correctanswer\")}\n${tempVars(\"1incorrectanswer\")}\n${tempVars(\"1incorrectanswer2\")}\n${tempVars(\"1incorrectanswer3\")}\n\nWhich one is the correct answer.",
      "name": "Set Embed Description"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "1",
      "iftrue": "2",
      "iftrueVal": "28",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "2",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "24",
      "name": "Check Variable"
    },
    {
      "storage": "1",
      "varName": "question1embed",
      "message": "${tempVars(\"question1\")}\n\nYour Answers:\n${tempVars(\"1incorrectanswer\")}\n${tempVars(\"1correctanswer\")}\n${tempVars(\"1incorrectanswer2\")}\n${tempVars(\"1incorrectanswer3\")}\n\nWhich one is the correct answer.",
      "name": "Set Embed Description"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "2",
      "iftrue": "2",
      "iftrueVal": "28",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "3",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "storage": "1",
      "varName": "question1embed",
      "message": "${tempVars(\"question1\")}\n\nYour Answers:\n${tempVars(\"1incorrectanswer\")}\n${tempVars(\"1incorrectanswer2\")}\n${tempVars(\"1incorrectanswer3\")}\n${tempVars(\"1correctanswer\")}\nWhich one is the correct answer.",
      "name": "Set Embed Description"
    },
    {
      "storage": "1",
      "varName": "randomanswer",
      "comparison": "1",
      "value": "2",
      "iftrue": "2",
      "iftrueVal": "28",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "question1embed",
      "message": "Please type your answer now!",
      "footerIcon": "",
      "name": "Set Embed Footer"
    },
    {
      "storage": "1",
      "varName": "question1embed",
      "channel": "0",
      "varName2": "",
      "name": "Send Embed Message"
    },
    {
      "storage": "0",
      "varName": "",
      "filter": "content.length > 0",
      "max": "1",
      "time": "60000",
      "varName2": "checkanswerquestionone",
      "storage2": "0",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Await Response Call Action"
    },
    {
      "channel": "0",
      "varName": "",
      "info": "4",
      "storage": "1",
      "varName2": "question1answermessage",
      "name": "Store Channel Info"
    },
    {
      "message": "1",
      "varName": "question1answermessage",
      "info": "2",
      "storage": "1",
      "varName2": "question1text",
      "name": "Store Message Info"
    },
    {
      "storage": "1",
      "varName": "question1text",
      "comparison": "6",
      "value": "tempVars(\"1correctanswer\")",
      "iftrue": "2",
      "iftrueVal": "36",
      "iffalse": "0",
      "iffalseVal": "21",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**I'm sorry, you got the answer wrong, Better Luck Next Time**\nThe answer I was looking for was, ${tempVars(\"1correctanswer\")}",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "You have got the answer right! ${member}",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    }
  ]
}

Mining


{
  "name": "mine",
  "permissions": "NONE",
  "restriction": "1",
  "_id": "LbPuW",
  "actions": [
    {
      "comment": "Mining System! Hopefully you enjoy this Mining system, Please let me know of your feedback!",
      "color": "#00ff80",
      "name": "Comment"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "pickaxe",
      "defaultVal": "0",
      "storage": "1",
      "varName2": "pickaxe",
      "name": "Store Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "Credit",
      "defaultVal": "0",
      "storage": "1",
      "varName2": "Credit",
      "name": "Store Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "bitcoinbalance",
      "defaultVal": "0",
      "storage": "1",
      "varName2": "bitcoinbalance",
      "name": "Store Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "defaultVal": "0",
      "storage": "1",
      "varName2": "cooldownmining",
      "name": "Store Member Data"
    },
    {
      "info": "0",
      "infoIndex": "1",
      "storage": "1",
      "varName": "param",
      "name": "Store Command Params"
    },
    {
      "comment": "Help Command.",
      "color": "#000000",
      "name": "Comment"
    },
    {
      "condition": "0",
      "comparison": "2",
      "value": "0",
      "iftrue": "2",
      "iftrueVal": "14",
      "iffalse": "0",
      "iffalseVal": "",
      "name": "Check Parameters"
    },
    {
      "title": "Help Menu",
      "author": "",
      "color": "RANDOM",
      "timestamp": "false",
      "url": "",
      "authorIcon": "",
      "imageUrl": "",
      "thumbUrl": "",
      "storage": "1",
      "varName": "helpembed",
      "name": "Create Embed Message"
    },
    {
      "storage": "1",
      "varName": "helpembed",
      "message": "!mine start - Go mining in the channel the command is done.\n!mine - for this mine command help.\n!mine pickaxe - Buy a pickaxe here.",
      "name": "Set Embed Description"
    },
    {
      "storage": "1",
      "varName": "helpembed",
      "channel": "0",
      "varName2": "",
      "name": "Send Embed Message"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "comment": "BEGIN MINING COMMAND!",
      "color": "#000000",
      "name": "Comment"
    },
    {
      "storage": "1",
      "varName": "param",
      "comparison": "1",
      "value": "\"start\"",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "103",
      "name": "Check Variable"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "pickaxe",
      "comparison": "1",
      "value": "1",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "99",
      "name": "Check Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "comparison": "1",
      "value": "1",
      "iftrue": "2",
      "iftrueVal": "101",
      "iffalse": "0",
      "iffalseVal": "101",
      "name": "Check Member Data"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "min": "1",
      "max": "3",
      "name": "Generate Random Number"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "1",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "24",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You head deep into the cave...**\n",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "1",
      "iftrue": "2",
      "iftrueVal": "31",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "2",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "27",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You make your way into the cave..**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "2",
      "iftrue": "2",
      "iftrueVal": "31",
      "iffalse": "1",
      "iffalseVal": "46",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "3",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You have started mining..**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "storage": "1",
      "varName": "randomsay",
      "comparison": "1",
      "value": "3",
      "iftrue": "2",
      "iftrueVal": "31",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "input": "0:",
      "wordLength": "2",
      "storage": "1",
      "varName": "timerandom",
      "name": "Randomize Letters"
    },
    {
      "time": "${tempVars(\"timerandom\")}",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "storage": "1",
      "varName": "minerange",
      "min": "1",
      "max": "10",
      "name": "Generate Random Number"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "1",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "40",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You were unable to find anything in your mining timeframe. ${member} ** ",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "2",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "46",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**The cave was quiet, you were unable to find anything in the cave. ${member}**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "3",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "52",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**There was noting in the cave, ${member}**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "4",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "59",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You somehow dug up 0.0100 bitcoins ${member}, I have added this to your bitcoin balance.**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "bitcoinbalance",
      "changeType": "1",
      "value": "0.0100",
      "name": "Control Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "5",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "66",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You dug up a Silver Block ${member}, I have sold this for ₱60**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "Credit",
      "changeType": "1",
      "value": "60",
      "name": "Control Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "6",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "72",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You found something cool, then another miner took it from you. You didn't win the battle and came out empty handed.**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "7",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "79",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**Nice job! You dug up gold in that mine, Sold for ₱650**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "money",
      "changeType": "1",
      "value": "650",
      "name": "Control Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "8",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "86",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**Nice! You found diamonds in a cave ${member}** Sold for ₱1200",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "money",
      "changeType": "1",
      "value": "1200",
      "name": "Control Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "9",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "92",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**Nothing was found in the cave ${member}**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "fishrange",
      "comparison": "1",
      "value": "10",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "You have managed to dig up some rare bitcoins found in the cave left over.\nThey totaled up to be **0.0150** in bitcoins. They were added to your bitcoin account ${member}",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "bitcoinbalance",
      "changeType": "1",
      "value": "0.0150",
      "name": "Control Member Data"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "time": "15",
      "measurement": "2",
      "name": "Wait"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "cooldownmining",
      "changeType": "0",
      "value": "0",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "You need a pickaxe to go mining!",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "You are currently on break, it's tiring to work in the mine! Try back later.",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "storage": "1",
      "varName": "param",
      "comparison": "1",
      "value": "\"pickaxe\"",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "1",
      "iffalseVal": "",
      "name": "Check Variable"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "Credit",
      "comparison": "4",
      "value": "450",
      "iftrue": "0",
      "iftrueVal": "",
      "iffalse": "2",
      "iffalseVal": "108",
      "name": "Check Member Data"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**₱450 was removed from your bank account, you now own a pickaxe!**\n",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    },
    {
      "member": "1",
      "varName": "",
      "dataName": "pickaxe",
      "changeType": "0",
      "value": "1",
      "name": "Control Member Data"
    },
    {
      "name": "End Action Sequence"
    },
    {
      "channel": "0",
      "varName": "",
      "message": "**You do not have enough to purchase this item! ₱450 or more required**",
      "storage": "0",
      "varName2": "",
      "name": "Send Message"
    }
  ],
  "comType": "0"
}

Updated Bank

Sample of Overall Code

Sample of Work History and Latest Commits

How to contribute?

If you would like to help or contribute to this project, you can send me a DM in Discord or Steem.Chat @cloh76 or cloh76.witness.

GitHub Account

https://github.com/cloh76

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

The Discord Bot Mudae has a simple pokemon game (well more like casino roulette), there's also a somewhat battle but I don't understand how that works out lol

Anyway looking forward to this one! :)

·

Thanks. I'll have to look into it and see how it works!

Thank you for your contribution. However, I am afraid that amount of work in this commit is not enough for a reward. I would recommend you add more work/code/features in your next contributions.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

I know you are doing great as you provide these helpful bots. not only that your contributions to make this community work progressively is the best support to every stemian.

·

Keep providing your input and feedback. Let me know if there is other features you would like to see

I hate this code! Because I don't know what that's mean! Nyahahaha...

Congratulations @cloh76! You have received a personal award!

2 Years on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Semi Finals - Day 1


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Hi cloh76,
Welcome to #steemph! Please find below your two footer banners made by @bearone for use in your future posts.

SteemPH Slim Banner
https://gateway.ipfs.io/ipfs/QmTRXEfrQCLLoYvSYjsuAKt4MoNm9ZfXJuR3oMu8NjPkTN

SteemPH Compact Banner
https://gateway.ipfs.io/ipfs/QmbuRi1N9RzMMyCC18KPZMQEsche1tururKkFwrf7dw7fN

Brought to you by @quochuy (steem witness)

Congratulations @cloh76! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!