description for only servers

This commit is contained in:
officereso 2021-01-24 17:47:19 -06:00
parent 7f2b0668a6
commit 4e4f83f55e

View File

@ -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')