예제 #1
0
 def cmd_uptime(self, msg, args):
     """Obtain the uptime of the machine running the bot."""
     return command_output(("/usr/bin/uptime"))
예제 #2
0
파일: toy.py 프로젝트: ajdiaz/whistler
 def cmd_uptime(self, msg, args):
     """Obtain the uptime of the machine running the bot."""
     return command_output(("/usr/bin/uptime"))
예제 #3
0
 def cmd_wtf(self, msg, args):
     """Uses the "wtf" tool to define acronyms and words."""
     args.insert(0, "/usr/games/wtf")
     return command_output(args)
예제 #4
0
파일: toy.py 프로젝트: ajdiaz/whistler
 def cmd_wtf(self, msg, args):
     """Uses the "wtf" tool to define acronyms and words."""
     args.insert(0, "/usr/games/wtf")
     return command_output(args)