Ejemplo n.º 1
0
def help_all():
    help_message = textformat.bold(
        functions.get_bot_name() + ' Developed by ' +
        config.dev_name) + '\n' + 'Prefix: ' + textformat.bold(
            config.prefix) + '\n'
    help_message += textformat.seperator()
    for command in command_list:
        if (command.enabled):
            help_message += command.help_short() + '\n'
    return help_message
Ejemplo n.º 2
0
 def run(self, message):
     servers = ' Server'
     if functions.get_server_count() != 1:
         servers += 's'
     stats_message = textformat.bold(
         functions.get_bot_name()) + ' is connected to ' + textformat.bold(
             str(functions.get_server_count()) + servers) + '\n'
     stats_message += 'Serving a Total of ' + textformat.bold(
         str(functions.get_total_user_count()) + ' Users') + '\n'
     stats_message += textformat.seperator()
     stats_message += functions.get_server_list()
     return stats_message
Ejemplo n.º 3
0
 def run(self, message):
     if len(message.content.split()) == 3:
         words = message.content.split()
     else:
         words = message.content.split(',')
     if len(users) >= 3:
         words = message.content.split(',')
         random.shuffle(words)
         return textformat.bold('F**k: ') + words[0].strip(
         ) + textformat.bold(' Marry: ') + words[1].strip(
         ) + textformat.bold(' Kill: ') + words[2].strip()
     else:
         return 'You must Enter Exactly 3 People. If more than 3 Words, Split with a Comma'
Ejemplo n.º 4
0
 def run(self, message):
     flip = random.randint(1, 501)
     if flip > 0 and flip <= 250:
         result = 'Heads!'
     elif flip > 250 and flip <= 500:
         result = 'Tails!'
     else:
         result = random.choice(self.random_outcomes)
     return 'Flipping a Coin... ' + textformat.bold(result)
Ejemplo n.º 5
0
 def run(self, message):
     # If only 2 Words, Split at Space
     if len(message.content.split()) == 2:
         users = message.content.split()
     else:
         users = message.content.split(',')
     if len(users) >= 2:
         love = random.randint(-1, 101)
         emoji = self.get_love_emoji(love)
         return textformat.bold(
             str(love) + '%') + ' Love Between ' + users[0].title().strip(
             ) + ' and ' + users[1].title().strip() + ' ' + emoji
     else:
         return 'You must Enter Exactly 2 People. If more than 2 Words, Split with a Comma'
Ejemplo n.º 6
0
 def help_long(self):
     command_name = textformat.bold(self.name + ' Help:')
     command_args = ''
     # If only 1 Argument
     if type(self.args) is str:
         # Adds Args only if Not Empty
         if self.args:
             command_args += '<' + self.args.lower() + '>'
     else:
         # If Multiple Arguments
         for arg in self.args:
             command_args += '<' + arg.lower() + '>'
             if arg != self.args[-1]:
                 command_args += ', '
     command_usage = 'Usage: ' + config.prefix + ' ' + self.name.lower(
     ) + ' ' + command_args
     command_desc = 'Description: ' + self.desc
     command_aliases = 'Aliases: ' + str(self.aliases)
     return command_name + '\n' + command_usage + '\n' + command_desc + '\n' + command_aliases
Ejemplo n.º 7
0
 def run(self, message):
     return textformat.bold('BORK ' * random.randint(1, 200))
Ejemplo n.º 8
0
def invalid_command():
    return 'Invalid Command! For a list of Commands type ' + textformat.bold(
        config.prefix + ' help')
Ejemplo n.º 9
0
 def run(self, message):
     msg = message.server.name + ' has ' + textformat.bold(
         str(functions.get_user_count(message.server))) + ' Members'
     return msg
Ejemplo n.º 10
0
 def help_short(self):
     return textformat.bold(self.name) + ' - ' + self.desc