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

feat: added help command in bot.#24

Open
jocaetano1 wants to merge 1 commit into
angolaosc:mainfrom
jocaetano1:main
Open

feat: added help command in bot.#24
jocaetano1 wants to merge 1 commit into
angolaosc:mainfrom
jocaetano1:main

Conversation

@jocaetano1
Copy link
Copy Markdown
Contributor

@jocaetano1 jocaetano1 commented Oct 25, 2023

closes #17

Added help commad in bot

@aosccode

@trupakufi
Copy link
Copy Markdown
Contributor

@antonio-pedro99 Can you check it out ?

Copy link
Copy Markdown
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

Comment thread .vscode/settings.json
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/bot.py
"criado": "created",
}


Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Certo.

Comment thread src/bot.py
case_insensitive=True, intents=intents)
searcher = GithubSearcher(github_token=GITHUB_TOKEN)

bot.remove_command('help')
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/bot.py
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@jocaetano1 @trupakufi temos alguma novidade aqui?

@jocaetano1
Copy link
Copy Markdown
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