aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/fun.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-02-17 14:25:34 -0500
committerGravatar sco1 <[email protected]>2019-02-17 14:25:34 -0500
commitcb5f8a878bcf7417d5309f5f9b76ea12a53fd09d (patch)
tree96194efad03264427eeb3b1a1164412ec405490d /bot/seasons/evergreen/fun.py
parentMerge pull request #111 from astieman/RollMethod (diff)
Add direct reference to terning emoji to constants, fun cog
Diffstat (limited to 'bot/seasons/evergreen/fun.py')
-rw-r--r--bot/seasons/evergreen/fun.py5
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)