Author Topic: !addwins and !wins commands  (Read 3026 times)

0 Members and 1 Guest are viewing this topic.

stephiebunnie

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: stephiebunnie
!addwins and !wins commands
« on: February 20, 2019, 04:07:49 PM »
I want to record my wins for my game with !addwin  adding wins so that !wins will display my total wins.
How do I do this?

Dante557

  • Advisor
  • Councilor
  • **
  • Posts: 555
  • Karma: +26/-0
  • Sometimes Helpful, Sometimes Not :D
    • View Profile
    • My Twitch Page
  • Twitch Name: Dante557
Re: !addwins and !wins commands
« Reply #1 on: February 25, 2019, 03:55:33 AM »
I want to record my wins for my game with !addwin  adding wins so that !wins will display my total wins.
How do I do this?

This is pretty simple and can be done in a few ways.

The way I'll show you below is to make use of @getcounter@ in the !win command. This will grab the number of times that a specific command has been run in total. As such, you can reset the counter in !addwin when you need to.

If you need to know more custom variables that you can use, you can find there at http://wiki.deepbot.tv/custom_commands

!addwin
Code: [Select]
That's 1 more win. The total number of wins we're at now is @counter@
!win
Code: [Select]
In total, we have had @getcounter@[!addwin] @if@[@getcounter@[!addwin]||1||victory!||victories!]
If you need to get through to me you can try to contact me on Twitter @ http://www.twitter.com/dante556