Skip to content

Conversation

@advrxh
Copy link
Contributor

@advrxh advrxh commented Oct 2, 2021

A fun and simple command to answer to a yes/no question with a random response!

eg.

user#0002   : .say Will I fail my exams?
Tyrant:4342 : Lemon says: Certainly not.

Created 1 file tyrant/cogs/lemon_say.py for the command Cog

Updated 1 file tyrant/__main__.py to load the Cog

Copy link
Owner

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

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

Okay, so I have to request some changes here, especially not duplicating the constants.

In addition to addressing the comments in this review, I want us to have a conversation in the server about what to name this function. I don't like "lemon say". I am not the bot, and I don't want the bot to speak on my behalf. What you're building here is basically a Magic 8-ball cog, which is fine, but let's name it something along those lines then.

I also think it works just as well if it's the Tyrant who says these things. So, instead of "8-ball says" or "Lemon says:", maybe something like "The Tyrant commands: Absolutely not!".

Like, we're making a command here that let's you ask the Tyrant a yes or no question.

@advrxh
Copy link
Contributor Author

advrxh commented Oct 6, 2021

Made changes raised in the reviews!

@advrxh advrxh changed the title aadilvarsh : added lemon say🍋 aadilvarsh : Added Tyrant ask (previously lemon say 🍋) Oct 6, 2021
Copy link
Owner

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

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

Getting closer. Nice work so far.

When you address these changes, please update the original PR description to match the new functionality, since the original PR body text is now out of date and a bit misleading.

log = logging.getLogger(__name__)


class Magic8Ball(Cog):
Copy link

Choose a reason for hiding this comment

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

This should be updated since it is now a "say command".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Bluenix2 Lemon suggested to use the name Magic8ball...

Copy link
Owner

Choose a reason for hiding this comment

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

it is a magic 8-ball. it's just one that has a specific "evil tyrant" flavor.

..but this classname may make it harder to find this code for people who go looking for it. We can probably name it something like AskTyrant and ask_tyrant.py.

Copy link

Choose a reason for hiding this comment

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

Are we going forward with this renaming?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is a magic 8-ball. it's just one that has a specific "evil tyrant" flavor.

..but this classname may make it harder to find this code for people who go looking for it. We can probably name it something like AskTyrant and ask_tyrant.py.

Sure! AskTyrant Will be fine, I was off town for few days thats what took long to respond, fixing it ASAP.

Copy link
Owner

Choose a reason for hiding this comment

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

still waiting for this change.

Copy link
Owner

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

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

Just a few more changes left before this is ready to merge.

log = logging.getLogger(__name__)


class Magic8Ball(Cog):
Copy link
Owner

Choose a reason for hiding this comment

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

still waiting for this change.

self.positive_replies = list(constants.POSITIVE_REPLIES)
self.uncertain_replies = list(constants.UNCERTAIN_REPLIES)

# filtering responses

Choose a reason for hiding this comment

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

Suggested change
# filtering responses
# Filter out certain responses


from tyrant import constants

# unsuitable responses to be removed from self.RESPONSES

Choose a reason for hiding this comment

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

Suggested change
# unsuitable responses to be removed from self.RESPONSES
# Unsuitable responses we need to remove from self.RESPONSES

I would probably type this in the present-tense but future-tense works as well.

self.positive_replies = list(constants.POSITIVE_REPLIES)
self.uncertain_replies = list(constants.UNCERTAIN_REPLIES)

# filtering responses

Choose a reason for hiding this comment

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

Suggested change
# filtering responses
# Filter out unsuitable responses for use here

Copy link
Owner

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

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

I think this looks good now. Let's merge! 🐱

@lemonsaurus lemonsaurus merged commit 2c261f7 into lemonsaurus:master Nov 7, 2021
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