diff --git a/telegrambot.py b/telegrambot.py index 0f13ddf3..67fb6d54 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -10,6 +10,8 @@ from discord import Status as DiscordStatus # Init the config reader import configparser + + = u.idle() config = configparser.ConfigParser() config.read("config.ini") @@ -127,4 +129,3 @@ def process(arg_discord_connection): u.dispatcher.add_handler(CommandHandler("discord", cmd_discord)) u.dispatcher.add_handler(CommandHandler("cast", cmd_cast)) u.start_polling() - u.idle() \ No newline at end of file diff --git a/templates/leaderboards.html b/templates/leaderboards.html index d8a34bd2..215a0ef0 100644 --- a/templates/leaderboards.html +++ b/templates/leaderboards.html @@ -11,214 +11,227 @@
Royal | -Steam | -Wins | -Solo MMR | -Party MMR | -
---|
{{ record.steam.royal.username }} | -{{ record.steam.persona_name }} | -{{ record.wins }} | -{{ record.solo_mmr if record.solo_mmr is not none}} | -{{ record.party_mmr if record.party_mmr is not none}} | +Royal | +Steam | +Wins | +Solo MMR | +Party MMR |
---|
Royal | -Steam | -Singolo 1v1 | -Doppio 2v2 | -Standard 3v3 | -Solo Standard SoloQ | -
---|---|---|---|---|---|
{{ record.steam.royal.username }} | +{{ record.steam.persona_name }} | +{{ record.wins }} | +{{ record.solo_mmr if record.solo_mmr is not none}} | +{{ record.party_mmr if record.party_mmr is not none}} | +
{{ record.steam.royal.username }} | -{{ record.steam.persona_name }} | -
- {% if record.single_rank is not none %}
-
-
-
- {% elif record.single_mmr is not none %}
-
- {{ record.single_mmr }}
- Div {{ record.single_div + 1 }}
-
-
- {% endif %}
- {{ record.single_mmr }}
- Inattivo
- |
-
- {% if record.doubles_rank is not none %}
-
-
-
- {% elif record.doubles_mmr is not none %}
-
- {{ record.doubles_mmr }}
- Div {{ record.doubles_div + 1 }}
-
-
- {% endif %}
- {{ record.doubles_mmr }}
- Inattivo
- |
-
- {% if record.standard_rank is not none %}
-
-
-
- {% elif record.standard_mmr is not none %}
-
- {{ record.standard_mmr }}
- Div {{ record.standard_div + 1 }}
-
-
- {% endif %}
- {{ record.standard_mmr }}
- Inattivo
- |
-
- {% if record.solo_std_rank is not none %}
-
-
-
- {% elif record.solo_std_mmr is not none %}
-
- {{ record.solo_std_mmr }}
- Div {{ record.solo_std_div + 1 }}
-
-
- {% endif %}
- {{ record.solo_std_mmr }}
- Inattivo
- |
+ Royal | +Steam | +Singolo 1v1 | +Doppio 2v2 | +Standard 3v3 | +Solo Standard SoloQ |
---|
Royal | -Battletag | -Livello | -Rank | -||
---|---|---|---|---|---|
{{ record.steam.royal.username }} | +{{ record.steam.persona_name }} | +
+ {% if record.single_rank is not none %}
+
+
+
+ {% elif record.single_mmr is not none %}
+
+ {{ record.single_mmr }}
+ Div {{ record.single_div + 1 }}
+
+
+ {% endif %}
+ {{ record.single_mmr }}
+ Inattivo
+ |
+
+ {% if record.doubles_rank is not none %}
+
+
+
+ {% elif record.doubles_mmr is not none %}
+
+ {{ record.doubles_mmr }}
+ Div {{ record.doubles_div + 1 }}
+
+
+ {% endif %}
+ {{ record.doubles_mmr }}
+ Inattivo
+ |
+
+ {% if record.standard_rank is not none %}
+
+
+
+ {% elif record.standard_mmr is not none %}
+
+ {{ record.standard_mmr }}
+ Div {{ record.standard_div + 1 }}
+
+
+ {% endif %}
+ {{ record.standard_mmr }}
+ Inattivo
+ |
+
+ {% if record.solo_std_rank is not none %}
+
+
+
+ {% elif record.solo_std_mmr is not none %}
+
+ {{ record.solo_std_mmr }}
+ Div {{ record.solo_std_div + 1 }}
+
+
+ {% endif %}
+ {{ record.solo_std_mmr }}
+ Inattivo
+ |
+
{{ record.royal.username }} | -{{ record }} | -{{ record.level }} | -- {% if record.rank is not none %} - - {{ record.rank }} + | Royal | +Battletag | +Livello | +Rank | +
---|---|---|---|---|---|---|---|
{{ record.royal.username }} | +{{ record }} | +{{ record.level }} | ++ {% if record.rank is not none %} + + {{ record.rank }} + {% endif %} + | +
Royal | +Username | +osu! | +osu!taiko | +osu!catch | +osu!mania | +
---|---|---|---|---|---|
{{ record.royal.username }} | +{{ record.osu_name }} | +{{ record.std_pp|round(0, "floor")|int if record.std_pp is not none and record.std_pp >= 1 }} | +{{ record.taiko_pp|round(0, "floor")|int if record.taiko_pp is not none and record.taiko_pp >= 1 }} | +{{ record.catch_pp|round(0, "floor")|int if record.catch_pp is not none and record.catch_pp >= 1 }} | +{{ record.mania_pp|round(0, "floor")|int if record.mania_pp is not none and record.mania_pp >= 1 }} | +
Royal | +Summoner | +Livello | +Solo SR | +Flex SR | +Flex TT | +
---|---|---|---|---|---|
{{ record.royal.username }} | +{{ record.summoner_name }} | +{{ record.level }} | + {% if record.solo_division is not none %} +{{ record.solo_division.name|capitalize }} {{ record.solo_rank.name }} | + {% else %} +{% endif %} - - |
Royal | -Username | -osu! | -osu!taiko | -osu!catch | -osu!mania | -
---|---|---|---|---|---|
{{ record.royal.username }} | -{{ record.osu_name }} | -{{ record.std_pp|round(0, "floor")|int if record.std_pp is not none and record.std_pp >= 1 }} | -{{ record.taiko_pp|round(0, "floor")|int if record.taiko_pp is not none and record.taiko_pp >= 1 }} | -{{ record.catch_pp|round(0, "floor")|int if record.catch_pp is not none and record.catch_pp >= 1 }} | -{{ record.mania_pp|round(0, "floor")|int if record.mania_pp is not none and record.mania_pp >= 1 }} | -
Royal | -Summoner | -Livello | -Solo SR | -Flex SR | -Flex TT | -|||
---|---|---|---|---|---|---|---|---|
{{ record.royal.username }} | -{{ record.summoner_name }} | -{{ record.level }} | - {% if record.solo_division is not none %} -{{ record.solo_division.name|capitalize }} {{ record.solo_rank.name }} | - {% else %} -- {% endif %} - {% if record.flex_division is not none %} - | {{ record.flex_division.name|capitalize }} {{ record.flex_rank.name }} | - {% else %} -- {% endif %} - {% if record.twtr_division is not none %} - | {{ record.twtr_division.name|capitalize }} {{ record.twtr_rank.name }} | - {% else %} -- {% endif %} - |