diff options
author | 2019-02-18 15:04:40 +0100 | |
---|---|---|
committer | 2019-02-18 15:04:40 +0100 | |
commit | b41c826305087fe2c08bcbd146a61ece188d05fb (patch) | |
tree | f1ae871f057ccbaa7fbc75f24770716b5db19cfc /bot/seasons/evergreen/fun.py | |
parent | Merge pull request #118 from avayert/master (diff) | |
parent | Add direct reference to terning emoji to constants, fun cog (diff) |
Merge pull request #121 from python-discord/emoji-update
Add Terning Emoji to Constants, Update Fun Cog
Diffstat (limited to 'bot/seasons/evergreen/fun.py')
-rw-r--r-- | bot/seasons/evergreen/fun.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/fun.py b/bot/seasons/evergreen/fun.py index afe37b75..4da01dd1 100644 --- a/bot/seasons/evergreen/fun.py +++ b/bot/seasons/evergreen/fun.py @@ -3,6 +3,8 @@ import random from discord.ext import commands +from bot.constants import Emojis + log = logging.getLogger(__name__) @@ -25,7 +27,8 @@ class Fun: elif num_rolls < 1: output = ":no_entry: You must roll at least once." for _ in range(num_rolls): - output += ":terning%d: " % random.randint(1, 6) + terning = f"terning{random.randint(1, 6)}" + output += getattr(Emojis, terning, '') await ctx.send(output) |