-
Notifications
You must be signed in to change notification settings - Fork 13
feat: added help command in bot. #24
base: main
Are you sure you want to change the base?
Conversation
@antonio-pedro99 Can you check it out ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obrigado pela PR.
Deixei alguns comentários
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esse ficheiro é user-based configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sim, vou concertar isso.
locales = { | ||
"linguagem": "language", | ||
"dono": "owner", | ||
"actualização": "updated", | ||
"criado": "created", | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove espaços extras
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certo.
@@ -29,13 +29,16 @@ | |||
case_insensitive=True, intents=intents) | |||
searcher = GithubSearcher(github_token=GITHUB_TOKEN) | |||
|
|||
bot.remove_command('help') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uma explicação?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Por padrão o bot já vem com o comando help, então essa linha remove esse comando padrão.
title="SavannaBot", description="Search for github issues from discord", color=0x00ff00) | ||
embed.add_field(name="How to use", | ||
value="To use this bot, type `/svn` followed by the search terms. For example: `/svn language:python owner:django`", inline=False) | ||
embed.add_field(name="Available search terms", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isso não é verdade.
O Bot suporta todas queries possíveis no github.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vou verificar isso.
@jocaetano1 @trupakufi temos alguma novidade aqui? |
@antonio-pedro99 Neste final de semana vou tentar terminar essa feat. |
closes #17
Added help commad in bot
@aosccode