Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

feat: added help command in bot. #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jocaetano1
Copy link
Contributor

@jocaetano1 jocaetano1 commented Oct 25, 2023

closes #17

Added help commad in bot

@aosccode

@trupakufi
Copy link
Contributor

@antonio-pedro99 Can you check it out ?

Copy link
Member

@antonio-pedro99 antonio-pedro99 left a 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

Copy link
Member

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

Copy link
Contributor Author

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",
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove espaços extras

Copy link
Contributor Author

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')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uma explicação?

Copy link
Contributor Author

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",
Copy link
Member

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.

Copy link
Contributor Author

@jocaetano1 jocaetano1 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vou verificar isso.

@antonio-pedro99
Copy link
Member

@jocaetano1 @trupakufi temos alguma novidade aqui?

@jocaetano1
Copy link
Contributor Author

@jocaetano1 @trupakufi temos alguma novidade aqui?

@antonio-pedro99
Ainda não, tenho estado ocupado com alguns projectos.

Neste final de semana vou tentar terminar essa feat.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add help command /svn help or /svn ?
3 participants