Skip to content

idk u said u wanted to look at it#47

Open
ChiliMX wants to merge 2 commits intovcokltfre:masterfrom
ChiliMX:master
Open

idk u said u wanted to look at it#47
ChiliMX wants to merge 2 commits intovcokltfre:masterfrom
ChiliMX:master

Conversation

@ChiliMX
Copy link
Copy Markdown
Collaborator

@ChiliMX ChiliMX commented May 7, 2021

No description provided.

@ChiliMX
Copy link
Copy Markdown
Collaborator Author

ChiliMX commented May 7, 2021

fix: change language_version back to 3.8


@commands.command()
async def remind(self, ctx: Context, time, *, content):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why is there a blank line here? Did you mean to put in a docstring?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

black™️

embed = EmbedHelper(
title="Your reminder has arrived",
description=description,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The blank line here makes no sense?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

black™️

def __init__(self, bot):
self.bot = bot

async def send_reminder(self, ctx: Context, msg: Message, time: datetime.datetime, *, content):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

A docstring for this function would be nice

from utilities.helpers import EmbedHelper, CustomTimeConverter


class Reminders(commands.Cog):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

A docstring for this class would be nice


class Reminders(commands.Cog):
def __init__(self, bot):
self.bot = bot
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please typehint bot to Magoji's bot class

def __init__(self, bot):
self.bot = bot

async def send_reminder(self, ctx: Context, msg: Message, time: datetime.datetime, *, content):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This function should specify a return type typehint

@vcokltfre vcokltfre self-requested a review May 10, 2021 08:41
await super().login(*args, **kwargs)

async def get_prefix(self, message: Message) -> str:
'''
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This shouldn't be commented out

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yeah I didnt mean to commit it while that was commented, mb.


[tool.poetry.dependencies]
python = "^3.8"
python = "3.9"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why was python upgraded to 3.9 here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This isn't resolved.

):

description = textwrap.dedent(
f"""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is wrongly indented.

Comment on lines +51 to +57
f"""
Your reminder will arrive in {get_str_time_mapping(length)['amount']} {get_str_time_mapping(length)['unit']}(s) with the following content:
```
{content}
```
"""
)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is way too indented.

Comment on lines -75 to -86
if __name__ == "__main__":
bot = Bot()

bot.load_extension("jishaku")
bot.load_extensions(
"core.utility",
"core.config",
"utility.info",
"utility.tokens",
)

bot.run(getenv("TOKEN"))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't see why this was removed.

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