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

Fixed Issues #274

Merged
merged 10 commits into from
Oct 28, 2021
Merged

Fixed Issues #274

merged 10 commits into from
Oct 28, 2021

Conversation

Pagasis
Copy link
Contributor

@Pagasis Pagasis commented Oct 27, 2021

Fixed issues :
#237 #238 #242 #243 #244 #245
I have also fixed two occurrences of issue # 248 but not mentioning as the whole issue wasn't fixed.
Please consider for hacktoberfest 😄.

Copy link
Member

@Dhruvacube Dhruvacube left a comment

Choose a reason for hiding this comment

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

Please see the review comments and change it accordingly :)

@@ -35,7 +35,10 @@ def votedTopgg(ctx):
headers={"Authorization": topken},
)
try:
a_list = True if a.json().get("voted") >= 1 else False
if a.json().get("voted") >= 1:
Copy link
Member

Choose a reason for hiding this comment

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

hey @Pagasis no need to use if expression here, it would be a memory inefficient then, here remove the if and else and do this.

a_list = a.json().get("voted", False)

@@ -2,7 +2,6 @@
import io
import os
import platform
import random
from random import choice
Copy link
Member

Choose a reason for hiding this comment

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

here doing still won't fix this issue, here just change the filename to random_fun_games.py to fix this.

if str(ctx.message.author.id) in c.json().get("hasVoted24", False)
else False
)
if str(ctx.message.author.id) in c.json().get("hasVoted24", False):
Copy link
Member

Choose a reason for hiding this comment

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

here also no need to do this if and else.
just do

c_list = str(ctx.message.author.id) in c.json().get("hasVoted24")

@Dhruvacube Dhruvacube added bug Something isn't working enhancement New feature or request labels Oct 28, 2021
@Dhruvacube Dhruvacube merged commit a87a4a8 into Creatrix-Net:master Oct 28, 2021
@Pagasis
Copy link
Contributor Author

Pagasis commented Oct 28, 2021

Yeah, i have changed them, you may merge it!

Copy link
Member

@Dhruvacube Dhruvacube left a comment

Choose a reason for hiding this comment

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

approved :)

@Dhruvacube
Copy link
Member

@all-contributors please add @Pagasis for Maintenance

@allcontributors
Copy link
Contributor

@Dhruvacube

I've put up a pull request to add @Pagasis! 🎉

Dhruvacube added a commit that referenced this pull request Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment