Skip to content

Commit

Permalink
Merge pull request #44 from AnonGuy/master
Browse files Browse the repository at this point in the history
Yes
  • Loading branch information
Zwater authored Nov 4, 2018
2 parents c2b64c9 + 5c7e7db commit b70f168
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/wallit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@


def run_wallit(args: list) -> str:
print(args)
"""Take the arguments for the command, and return the response."""
if len(args) < 3:
if len(args) < 4:
return 'Required arguments: [Subreddit] [HeightxWidth]'
subreddit, resolution = args[1], args[2].split('x')
subreddit, resolution = args[2], args[3].split('x')
if not len(resolution) == 2:
return 'Error: Invalid resolution'
p_width, p_height = map(int, resolution)
Expand Down

0 comments on commit b70f168

Please sign in to comment.