I write one code for my twitch chat bot.
Code:
on *:TEXT:!mod*:#: {
  if ($nick isop #) {
    if ($2 == giw) {
      if ($3 == start) {
        msg $chan Giveaway start!
        set %giw on
        } elseif ($3 == stop) {
        msg $chan Giveaway was closed.
        set %giw off
        }  { return } elseif ($3 == pauseon) {
        if (%giw == off) {
          msg $chan Giveaway is currently paused.
          } else {
          msg $chan Giveaway was paused.
          set %giw off
        }
      }
      { return } { return } elseif ($3 == pauseoff) {
        if (%giw == on) {
          msg $chan Giveaway is currently unpaused.
          } else {
          msg $chan Giveaway was unpaused.
          set %giw on
        }
      }
      { return } { return } else ($3 == status) {
        if (%giw == on) {
          msg $chan Giveaway status: ON
          } else (%giw == off) {
          msg $chan Giveaway status: OFF
        }
      }
    } 
  }
}


Where is the problem:

Quote:
Me: !mod giw start
Bot: Giveaway start!

Me: !mod giw stop
Bot: Giveaway was closed.

Me: !mod giw pauseon
Bot: Giveaway was closed.



And this with all:
  • !pauseon
  • !pauseoff
  • !status