Author Topic: Question : chat commands  (Read 1858 times)

0 Members and 1 Guest are viewing this topic.

krappleby

  • Youngling
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
  • Twitch Name: krappleby
Question : chat commands
« on: September 25, 2015, 10:17:35 PM »
hi guys,

As a temp measure, im looking at the chat commands tab, and wondered if their was a command i could use, something like the following..

check current database, if user is follower, add 100 credits

Note (i have no problem running manually and no problem with only using records in database, since i have just started, and only haev about 40 followers.. )

is this possible, i dont have access to chat commands list, or is their somewhere ic an go do read this..

cheers
jkeith

MrOrkMork

  • Youngling
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MrOrkMork
Re: Question : chat commands
« Reply #1 on: September 25, 2015, 11:11:45 PM »
do this:

!followerpoints -> @if@[@lookupinfo@[@followdate@,@target@]||Not Following||@target@ is not following.||!add 100 @target@]

or if you want to have it without output if he is not following:
!followerpoints -> @if@[@lookupinfo@[@followdate@,@target@]||Not Following||||!add 100 @target@]

Regards,
MrOrkMork

krappleby

  • Youngling
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
  • Twitch Name: krappleby
Re: Question : chat commands
« Reply #2 on: September 26, 2015, 12:50:26 AM »
Hi, i have tried this, but its adding the points wether the user is following or not.. (ps im using my streamer name, will that make a difference..?)

im not following my stream, so it shouldnt, but its adding the 100 anyway.

MrOrkMork

  • Youngling
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MrOrkMork
Re: Question : chat commands
« Reply #3 on: September 26, 2015, 01:44:31 AM »
I have tested it with my streaming account and the command added to me 100 points too.
But to another guy who is not mod/streamer/whatever it worked perfect.

Btw: you should set the Access Control to: 8. Mod Only or higher. Just that the users don't abuse the command ;)

Maybe you are automatic flagged as a follower to your own channel.
Like calling your self with the telefon. It will always be "busy".

Regards,
MrOrkMork

Edit:
I have extended the command a bit to be more dynamic:
!followpoints -> @if@[@lookupinfo@[@followdate@,@target@[2]]||Not Following||@target@[2] is not following.||!add @target@[1] @target@[2]]

And as an example and testing:
- user1 is not following
- user2 is following
- streameraccount is not following myself :D

MrOrkMork: !followpoints 100 user1
MiniMork: user1 is not following.
MrOrkMork: !followpoints 100 user2
MiniMork: Added 100 to user user2. New balance: 5.689
MrOrkMork: !followpoints 100 mrorkmork
MiniMork: Added 100 to user mrorkmork. New balance: 28.185
« Last Edit: September 26, 2015, 01:54:25 AM by MrOrkMork »