changed emoji for basic messages based on context
This commit is contained in:
parent
44fda5691e
commit
5345450020
|
@ -1,4 +1,4 @@
|
||||||
import asyncio, time, datetime, games, json, threading, jinja2, leagues, os, leagues
|
import asyncio, time, datetime, games, json, threading, jinja2, leagues, os, leagues, gametext
|
||||||
from leagues import league_structure
|
from leagues import league_structure
|
||||||
from league_storage import league_exists
|
from league_storage import league_exists
|
||||||
from flask import Flask, url_for, Response, render_template, request, jsonify, send_from_directory, abort
|
from flask import Flask, url_for, Response, render_template, request, jsonify, send_from_directory, abort
|
||||||
|
@ -186,8 +186,12 @@ def update_loop():
|
||||||
|
|
||||||
if "weather_message" in this_game.last_update[0].keys():
|
if "weather_message" in this_game.last_update[0].keys():
|
||||||
state["update_emoji"] = this_game.weather.emoji
|
state["update_emoji"] = this_game.weather.emoji
|
||||||
else:
|
elif "ishit" in this_game.last_update[0] and this_game.last_update[0]["ishit"]:
|
||||||
state["update_emoji"] = "🏏"
|
state["update_emoji"] = "🏏"
|
||||||
|
elif this_game.last_update[0]["text"] == gametext.appearance_outcomes.walk:
|
||||||
|
state["update_emoji"] = "👟"
|
||||||
|
else:
|
||||||
|
state["update_emoji"] = "🗞"
|
||||||
|
|
||||||
if "steals" in this_game.last_update[0].keys():
|
if "steals" in this_game.last_update[0].keys():
|
||||||
updatestring = ""
|
updatestring = ""
|
||||||
|
|
Loading…
Reference in a new issue