2017-11-22 6 views
2

그래서 사람들이 discord.py와 함께 제공되는 도움말 명령을 사용할 때 명령에 대한 설명을 변경하려고합니다.Discord bot 도움말 명령

하지만이 설명을 넣는 방법이나 위치를 알 수는 없습니다.

나는 또한 도움말 목록에서 음악과 같은 다른 카테고리를 만들려고 노력하고 있지만 실제로 어디에서 시작해야할지 모르겠다.

나는 파이썬 정말 새로운 해요하지만 난

내 코드가 상당히 긴하지만 여기의 일부입니다 전에 다른 프로그래밍 언어 처리 한

client = commands.Bot(command_prefix=commands.when_mentioned_or('?'), 
description='Help List', pm_help = True) 
client.add_cog(Music(client)) 

path = 'Blacklist.txt' 

bl = open(path, 'r') 

@client.event 
async def on_ready(): 
    print('---------------------------------------------------------------------------------------') 
    print('') 
    print('Logged in as '+client.user.name+' (ID:'+client.user.id+') | Connected to '+str(len(client.servers))+' servers | Connected to '+str(len(set(client.get_all_members())))+' users') 
    print('') 
    print('---------------------------------------------------------------------------------------') 
    print('') 
    print('Current Discord.py Version: {} | Current Python Version: {}'.format(discord.__version__, platform.python_version())) 
    print('') 
    print('---------------------------------------------------------------------------------------') 

@client.command() 
async def ping(*args): 
    await client.say(":ping_pong: Pong!") 

의 난이 추가 싶어한다고 가정 해 봅시다 ping 명령에 대한 설명 정확히 어디에서 그걸 어떻게하겠습니까?

답변

1
@client.command(description="Some ping command") #here 
async def ping(*args): 
    await client.say(":ping_pong: Pong!")