From 4e4f83f55e9fec1aaf38fa41e90a07a77e3e0d93 Mon Sep 17 00:00:00 2001 From: officereso Date: Sun, 24 Jan 2021 17:47:19 -0600 Subject: [PATCH] description for only servers --- scr/Modules/TMC/McRoll.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scr/Modules/TMC/McRoll.py b/scr/Modules/TMC/McRoll.py index dcacb13..9a1e6ab 100644 --- a/scr/Modules/TMC/McRoll.py +++ b/scr/Modules/TMC/McRoll.py @@ -68,7 +68,7 @@ def get_choices() -> dict: con = get_con() choices = {} with con.cursor() as cursor: - cursor.execute("SELECT serverIP, serverName, lastActivated, reaction, getEmoji " + cursor.execute("SELECT serverIP, serverName, lastActivated, reaction, getEmoji, onlyServer " "FROM mc.server_list WHERE lastActivated is not null") row = cursor.fetchone() while row is not None: @@ -156,7 +156,8 @@ class McRoll(commands.Cog): if choice['getEmoji'] else bytes(choice['reaction'], "utf-8").decode("unicode_escape"), value="Multiplier : " + str(round(2 * math.log10(choice['lastActivated'] + 1) + 1, 2)) + '\n' + - "Last Rolled : " + str(choice['lastActivated'] * 2) + " weeks ago.") + "Last Rolled : " + str(choice['lastActivated'] * 2) + " weeks ago.") + \ + "\nThis is an only server, meaning if it wins it will be the only winner" if choice['onlyServer'] else "" pollMessage = await channel.send(embed=embed) await channel.send('@everyone')