Author Topic: Error checking on Bank heist  (Read 1185 times)

0 Members and 1 Guest are viewing this topic.

ladman

  • Youngling
  • *
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • Twitch Name: legendaryladman
Error checking on Bank heist
« on: August 10, 2017, 08:04:06 PM »

Is there a way i can add some error catching to the bank heist? For instance, I'm looking to add a try / catch for when a user does not put in a points value to bet on the heist.

!battle 20 <--- correct input and enters the heist

!battle  <--- user forgets to put in amount so print " @user@ you need to enter an amount to play the heist "

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Error checking on Bank heist
« Reply #1 on: August 10, 2017, 09:02:35 PM »
Would probably just make a custom bankheist command with @if@.

Example: Change the actual bankheist command to like !battle3462341, then make the custom command !battle. The command message of !battle would be @if@[@target@||||To enter bankheist, enter !battle <PointsToRiskHere>. Example !battle 20||!battle3462341 @target@]
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

ladman

  • Youngling
  • *
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • Twitch Name: legendaryladman
Re: Error checking on Bank heist
« Reply #2 on: August 11, 2017, 06:07:11 AM »
cool deal i will give this a whirl.