Author Topic: Random currency command  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

Grumbul

  • Padawan
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Grumbul
Random currency command
« on: August 27, 2015, 02:16:11 PM »
Is there anyway to set up a chat command that randomly provides an output of results, each one associated with a currency bonus?

e.g. a viewer would type !currencygrab and get 1 of 10 results, some of which add currency, some of which deduct currency - maybe all 10 results with a modifiable text to make it a little more descriptive. Command could only be run once an hour, or would 'cost' currency to do.

Essentially its an auto-betting query.

Cheers.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Random currency command
« Reply #1 on: August 27, 2015, 02:49:46 PM »
It would be sort of complicated, but with each new line, is considered a random response. But you can have the bot read commands from a .txt file. @readfile@[PathToFile\followcount.txt] = Read a line from an existing file (By default it uses custom logs folder in your deepbot folder), use @readfile@ e.g. @readfile@[custom logs\followcount.txt]

Example:

Command to Start



Chained Command



Winning Command

Old Name: RepentGamingTV
Twitch: Here

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