소스 검색

added emoji command for robbing those emotes

tags/v1.0.0
roxie 6 년 전
부모
커밋
266fcf31f2
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      cogs/util.py

+ 6
- 2
cogs/util.py 파일 보기

@@ -37,7 +37,6 @@ class Util():
await self.bot.send_file(ctx.message.channel, avaimg)
os.remove(avaimg)


@bot.command(pass_context=True)
async def info(self, ctx, member: discord.Member = None):
"""
@@ -86,7 +85,6 @@ class Util():
embed.add_field(name="Roles [{}]".format(count), value=roles.strip(", "))
return await self.bot.say(embed=embed)


@bot.command(pass_context=True)
async def upload(self, ctx):
"""
@@ -135,6 +133,12 @@ class Util():
else:
return await self.bot.say("Send me shit to upload nig")

@bot.command(pass_context=True)
async def emote(self, ctx, emote):
emoteid = emote.split(":")[-1].strip("<>")
url = "https://discordapp.com/api/emojis/{}.png".format(emoteid)
return await self.bot.say(url)

@bot.command(pass_context=True, hidden=True)
@checks.is_bot_owner()
async def echo(self, ctx, channel, *, message: str):

Loading…
취소
저장