Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a translate command #246

Merged
merged 2 commits into from
Apr 1, 2024
Merged

added a translate command #246

merged 2 commits into from
Apr 1, 2024

Conversation

aaj2005
Copy link
Contributor

@aaj2005 aaj2005 commented Apr 1, 2024

No description provided.

Copy link
Member

@Mole1424 Mole1424 left a comment

Choose a reason for hiding this comment

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

some changes needed

@@ -143,6 +143,17 @@ async def chat(self, ctx: Context, message: str = None, gpt4: bool = False):
async def gpt4(self, ctx: Context, message: str):
await self.chat(ctx, message, True)

@commands.hybrid_command()
async def translate(
self, ctx: Context, source: str, target: str, message: clean_content
Copy link
Member

Choose a reason for hiding this comment

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

add a help text to explain what source and target are (see

@commands.hybrid_command(help=LONG_HELP_TEXT, brief=SHORT_HELP_TEXT)
)

Also might be an idea to set a deafult value of source to en or auto

await ctx.send(translated)

@commands.hybrid_command()
async def joeltech(self, ctx: Context):
Copy link
Member

Choose a reason for hiding this comment

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

tbh im not entirely sure if we need this given :joel_tech: can already be written

Copy link

Choose a reason for hiding this comment

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

the command should be Joel not Joel tech for this to be effective

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed it for now, will make something mightier in the future :))

@Mole1424
Copy link
Member

Mole1424 commented Apr 1, 2024

use of camelCase in pytho brings me pain but fine

@Mole1424 Mole1424 merged commit 7aba37c into master Apr 1, 2024
5 checks passed
@Mole1424 Mole1424 deleted the translateCommand branch June 4, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants