소스 검색

updated roxfacts command to work with new discord.py version

tags/v2.0.0
Roxie Gibson 5 년 전
부모
커밋
e039a46a56
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      roxbot/cogs/fun.py

+ 1
- 1
roxbot/cogs/fun.py 파일 보기

@@ -462,7 +462,7 @@ class Fun:
Time="{:%a %Y/%m/%d %H:%M:%S} UTC".format(ctx.message.created_at)
)

@bot.command(aliases=["rf", "roxfacts", "roxfact"])
@commands.command(aliases=["rf", "roxfacts", "roxfact"])
async def roxbotfact(self, ctx):
fact_index = random.randrange(0, len(roxbot.roxbotfacts.facts))
fact = roxbot.roxbotfacts.facts[fact_index]

Loading…
취소
저장