Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: Grumbul on August 27, 2015, 02:16:11 PM

Title: Random currency command
Post by: Grumbul 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.
Title: Re: Random currency command
Post by: TheNumbLock 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

(http://puu.sh/jQ8Jz/2f23dee616.png)

Chained Command

(http://puu.sh/jQ8Mr/5cfd4fd21c.png)

Winning Command

(http://puu.sh/jQ8Ra/e95a446a79.png)