Exemple #1
0
	if 		'!cody.version' 	in MESSAGE  	\
	and 	connected 			== True 		:
		
		path 						= inspect.getfile(inspect.currentframe()) #get path of currently running file, including filename
		codyVersion 				= path[-6:-3]
		irc.send 					( 'PRIVMSG '+CHANNEL+' :I am currently running version: '+codyVersion+'\r\n' ) #print version number to irc
		

#!cody.feature
	if 		'!cody.feature'		in MESSAGE.lower() 	\
	and		connected 			== True 			:
	
		if len(MESSAGE) > len('!cody.feature\r\n'):
			codyFeature					= MESSAGE.split(' ', 1)
			codyFeature					= codyFeature[1]
			addFeature(codyFeature, NICK)
			irc.send 					( 'PRIVMSG '+CHANNEL+' :Your feature request has been saved and will be reviewed by my developers.\r\n' )

		else:
			irc.send('PRIVMSG '+CHANNEL+' :Usage: !cody.feature [your feature request] ' + '\r\n' )		
		

#!cody.bug
	if 		'!cody.bug'			in MESSAGE.lower() 	\
	and		connected 			== True 			:

		if len(MESSAGE) > len('!cody.bug\r\n'):
			codyBug 					= MESSAGE.split(' ', 1)
			codyBug 					= codyBug[1]
			addBug(codyBug, NICK)				#adds the reported bug to Cody/userFeedback/bugReports.txt
			irc.send 					( 'PRIVMSG '+CHANNEL+' :Your bug has been saved and will be reviewed by my developers.\r\n' )
Exemple #2
0
#!cody.version
	if 		'!cody.version' 	in MESSAGE  	\
	and 	connected 			== True 		:
		
		path 						= inspect.getfile(inspect.currentframe()) #get path of currently running file, including filename
		codyVersion 				= path[-6:-3]
		irc.send 					( 'PRIVMSG #code :'+codyVersion+'\r\n' ) #print version number to irc

#!cody.feature
	if 		'!cody.feature'		in MESSAGE.lower() 	\
	and 	' '					in MESSAGE.lower()	\
	and		connected 			== True 			:
	
		codyFeature					= MESSAGE.split(' ', 1)
		codyFeature					= codyFeature[1]
		addFeature(codyFeature)
		irc.send 					( 'PRIVMSG #code :Your feature request has been saved and will be reviewed by my developers.\r\n' )

#!cody.bug
	if 		'!cody.bug'			in MESSAGE.lower() 	\
	and 	' '					in MESSAGE.lower()	\
	and		connected 			== True 			:

		codyBug 					= MESSAGE.split(' ', 1)
		codyBug 					= codyBug[1]
		addBug(codyBug)				#adds the reported bug to Cody/userFeedback/bugReports.txt
		irc.send 					( 'PRIVMSG #code :Your bug has been saved and will be reviewed by my developers.\r\n' )


	print data
Exemple #3
0
    and  connected    == True   :

        path = inspect.getfile(inspect.currentframe(
        ))  #get path of currently running file, including filename
        codyVersion = path[-6:-3]
        irc.send('PRIVMSG ' + CHANNEL + ' :I am currently running version: ' +
                 codyVersion + '\r\n')  #print version number to irc

#!cody.feature
    if   '!cody.feature'  in MESSAGE.lower() 	\
    and  ' '     in MESSAGE.lower()	\
    and  connected    == True    :

        codyFeature = MESSAGE.split(' ', 1)
        codyFeature = codyFeature[1]
        addFeature(codyFeature, NICK)
        irc.send(
            'PRIVMSG ' + CHANNEL +
            ' :Your feature request has been saved and will be reviewed by my developers.\r\n'
        )

#!cody.bug
    if   '!cody.bug'   in MESSAGE.lower() 	\
    and  ' '     in MESSAGE.lower()	\
    and  connected    == True    :

        codyBug = MESSAGE.split(' ', 1)
        codyBug = codyBug[1]
        addBug(
            codyBug,
            NICK)  #adds the reported bug to Cody/userFeedback/bugReports.txt