#NEWLINE# def extra_help( self , command ) : #NEWLINE# #INDENT# help_command = { #NEWLINE# #INDENT# 'value' : { #NEWLINE# #INDENT# 'title' : 'Latest Value for a Device' , #NEWLINE# 'mrkdwn_in' : [ 'text' ] , #NEWLINE# 'text' : ( ( 'To get the latest value for a device, type ' + '`sdbot devices metric.here for deviceName`. ' ) + 'The metrics need to be separated by dots.' ) , #NEWLINE# 'color' : COLOR , #NEWLINE# #UNINDENT# } , #NEWLINE# 'find' : { #NEWLINE# #INDENT# 'title' : 'Find a Device' , #NEWLINE# 'mrkdwn_in' : [ 'text' ] , #NEWLINE# 'text' : ( ( 'To find a device type ' + '`sdbot devices find deviceName`. I can also accept regex for the argument `deviceName`. ' ) + 'For example `sdbot devices find 2$`.' ) , #NEWLINE# 'color' : COLOR , #NEWLINE# #UNINDENT# } , #NEWLINE# 'list' : { #NEWLINE# #INDENT# 'title' : 'List Devices' , #NEWLINE# 'mrkdwn_in' : [ 'text' ] , #NEWLINE# 'text' : ( ( ( 'To get a list of your devices type, ' + '`sdbot devices list <no>`. In this case `<no>` ' ) + 'a number. If you leave it out I will ' ) + 'list the first 5 devices.' ) , #NEWLINE# 'color' : COLOR , #NEWLINE# #UNINDENT# } , #NEWLINE# 'available' : { #NEWLINE# #INDENT# 'title' : 'Available Metrics' , #NEWLINE# 'mrkdwn_in' : [ 'text' ] , #NEWLINE# 'text' : ( ( 'To get all the available metrics for a device, type ' + '`sdbot devices available deviceName`. This will ' ) + 'display a list of metrics you can use for the command `devices value` or `graph`' ) , #NEWLINE# 'color' : COLOR , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# if ( command == 'value' ) : #NEWLINE# #INDENT# helptext = [ help_command [ 'value' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( command == 'available' ) : #NEWLINE# #INDENT# helptext = [ help_command [ 'available' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( command == 'find' ) : #NEWLINE# #INDENT# helptext = [ help_command [ 'find' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( command == 'list' ) : #NEWLINE# #INDENT# helptext = [ help_command [ 'list' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( command == 'help' ) : #NEWLINE# #INDENT# helptext = [ attachment for attachment in help_command . values ( ) ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return command