Deep Bot - Twitch Streamer Assistant
		Deep Bot => Help/Support => Topic started by: krappleby 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
- 
				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
- 
				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.
 
- 
				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