Ejemplo n.º 1
0
 async def mock(self, ctx: DogbotContext, *, text: clean_content):
     """mAkEs tExt Look LIkE thIs!"""
     spongemock = '<:spongemock:371555602964676610>'
     ev = random.randint(2, 4)
     result = [
         character.upper()
         if not text.index(character) % ev == 0 else character.lower()
         for character in text
     ]
     await ctx.send(spongemock + ' ' + ''.join(result) + ' ' + spongemock)
Ejemplo n.º 2
0
 async def mock(self, ctx, *, text: commands.clean_content):
     """ Mocks. """
     ev = random.randint(2, 4)
     result = [character.upper() if not text.index(character) % ev == 0 else character.lower() for character in text]
     await ctx.send(''.join(result))