diff options
| author | 2021-06-05 01:07:22 +0530 | |
|---|---|---|
| committer | 2021-06-05 01:07:22 +0530 | |
| commit | 880f02e77e9a34e46aaa12591bc6e7201833d5c2 (patch) | |
| tree | fc6687c40f35136687c88ed158c96c485cc4acca /bot | |
| parent | Merge branch 'master' of https://github.com/OculusMode/sir-lancebot (diff) | |
changed single quotes to double to follow style guide
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/rps.py | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py index b96ae80b..a5cacd90 100644 --- a/bot/exts/evergreen/rps.py +++ b/bot/exts/evergreen/rps.py @@ -4,25 +4,25 @@ from discord.ext import commands  from bot.bot import Bot -CHOICES = ['rock', 'paper', 'scissor'] -SHORT_CHOICES = ['r', 'p', 's'] +CHOICES = ["rock", "paper", "scissors"] +SHORT_CHOICES = ["r", "p", "s"]  # Using a dictionary instead of conditions to check for the winner.  WINNER_DICT = { -    'r': { -        'r': 0, -        'p': -1, -        's': 1, +    "r": { +        "r": 0, +        "p": -1, +        "s": 1,      }, -    'p': { -        'r': 1, -        'p': 0, -        's': -1, +    "p": { +        "r": 1, +        "p": 0, +        "s": -1,      }, -    's': { -        'r': -1, -        'p': 1, -        's': 0, +    "s": { +        "r": -1, +        "p": 1, +        "s": 0,      }  } | 
