Hello, Was wondering if someone more seasoned could help with this question. I'm trying to create a command in Ankhbot called "make it rain". Here's the result I'm trying to achieve: - I type: !makeitrain - The bot announces that points have been given to everyone in the stream. Here's what I have so far: Command: !makeitrain Response: $addpoints("$user","20","20","$user made it rain $value $currencyname to everyone in chat!","FailMessage") I've also tried: $addpoints("+viewers","20","20","$user made it rain $value $currencyname to everyone in chat!","FailMessage") I've also tried: $addpoints("$+viewers","20","20","$user made it rain $value $currencyname to everyone in chat!","FailMessage") I receive the success message, but, the points aren't being given. Any thoughts?
for this kind of stuff i would refer to @Koukiemonster She popped back on the forums not long ago, but haven't seen her post since. As to what you're trying to accomplish, everything looks right but $user would give the user and user only the currency that types it into chat. I personally don't use it right now, nor have i setup custom commands with it. However, i'd assume $everyone would be more appropriate. from other guides the best i've found is !points add +viewers 20 but i'm sure koukie could chime in with better options, additionally you could reply to her post here
Thanks for the response. Yeah, the !points add +viewers 20 works. But, I was trying to setup parameters so I wouldn't have to type that out every time. My goal is to type !makeitrain and have the bot execute the !points add +viewers 20 command. I even tried giving the bot editor permission but that didn't work either.
wouldn'tCode: $givepoints("+viewers","$target","$num2","$user gave $target, $value [insert channel currency]","Fail","false") work? it would take from your pool of points and give to them.
Sadly, +viewers doesn't seem to work. In theory, it sounds like it should work but for some reason it doesn't recognize that parameter.