Here is a SUPER simple Points/Award script I put together. There is nothing too incredibly complex about this, it simply allows you to award a user for the sake of awarding them, and keeps track of how many points each user on the list is up to. In this particular case, I was giving out "internets" as an award, because who doesn't like winning internets?!
You may have noticed that yahoo no longer allows DJI in the CSV because of some licensing stuff.
Would it be insanely difficult to grab all 30 of the DJI company's price fields and math out the average as a workaround?
Something like
;NON WORKING EXAMPLE
elseif ($2 == dji) {
;help!! insert code to grab 30 results here and return a total price of all 30
;list: MMM, AXP, T, BA, CAT, CVX, CSCO, KO, DD, XOM, GE, GS, HD, INTC, IBM, JNJ, JPM, MCD, MRK, MSFT, NKE, PFE, PG, TRV, UNH, UTX, VZ, V, WMT, DIS
var %indavg = total / 30
.msgtype DJI is currently at %indavg
}
I'm not sure if you can grab all these in one CSV file, or if a separate sock process is needed for each. Any help Would be most appreciated. Great work on this!
If it is not too much trouble, i would like to be able to use ".ud" or ".slang" to message the $chan instead of @. I tried to make this edit myself, but now whenever someone types "pudding", or "audio" it brings up a random word. Thanks in advance, and may you be awarded MANY internets for your awesome scripting!