more work on the emojify command
@@ -135,9 +135,17 @@ class Text(commands.Cog):
await self.bot.send(ctx, bubble_body)
- @commands.command(name='emojifi', aliases=['emojify'])
- async def emojifi_text(self, ctx, *, text):
- abcdefg_someone_shouldve_told_ya_not_to_fuck_with_me = "abcdefghijklmnopqrstuvwxyz"
+ @commands.command(name='emojify')
+ async def emojifi_text(self, ctx, *, _text):
+ abcdefg_someone_shouldve_told_ya_not_to_fuck_with_me = 'abcdefghijklmnopqrstuvwxyz'
+
+ text = discord.utils.escape_markdown(ctx.message.clean_content.replace('emojify', ''))
+
+ for letter in text:
+ if letter in abcdefg_someone_shouldve_told_ya_not_to_fuck_with_me:
+ text += ':regional_indicator_' + letter
+ elif
+
def setup(bot):
bot.add_cog(Text(bot))
