1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Non vogliamo ddossare la rito

e cambiato un po' la formattazione di /osu
This commit is contained in:
Steffo 2016-02-14 16:19:44 +01:00
parent ae3af599f8
commit 9388ad84c4

69
bot.py
View file

@ -287,17 +287,27 @@ while True:
if mode == 0: if mode == 0:
# Visualizza le informazioni relative alla modalità osu! # Visualizza le informazioni relative alla modalità osu!
telegram.sendmessage("*osu!*\n" telegram.sendmessage("*osu!*\n"
"[Beatmap {0}](https://osu.ppy.sh/b/{1})\n" "[Beatmap {0}](https://osu.ppy.sh/b/{0})\n"
"*{2}*\n" "*{1}*\n"
"{3}\n" "{2}\n"
"*Punti*: {4}\n" "*Punti*: {3}\n"
"*Combo* x{5}\n" "*Combo* x{4}\n"
"*300*: {6}\n" "*300*: {5}\n"
"*100*: {7}\n" "*100*: {6}\n"
"*50*: {8}\n" "*50*: {7}\n"
"*Awesome*: {9}\n" "*Awesome*: {8}\n"
"*Good*: {10}\n" "*Good*: {9}\n"
"*Miss*: {11}".format(), sentin, source) "*Miss*: {10}"
.format(r['beatmap_id'],
r['rank'],
r['score'],
r['maxcombo'],
r['count300'],
r['count100'],
r['count50'],
r['countkatu'],
r['countgeki'],
r['countmiss']), sentin, source)
elif mode == 1: elif mode == 1:
# Visualizza le informazioni relative alla modalità osu!taiko # Visualizza le informazioni relative alla modalità osu!taiko
telegram.sendmessage("*osu!taiko*\n" telegram.sendmessage("*osu!taiko*\n"
@ -352,21 +362,28 @@ while True:
mods = osu.listmods(r['enabled_mods']) mods = osu.listmods(r['enabled_mods'])
else: else:
mods = "" mods = ""
telegram.sendmessage("*Osu!*\n" telegram.sendmessage("*osu!*\n"
"[Beatmap " + r['beatmap_id'] + "](" + 'https://osu.ppy.sh/b/' + r[ "[Beatmap {0}](https://osu.ppy.sh/b/{0})\n"
'beatmap_id'] + "*{1}*\n"
")\n*" + r['rank'] + "*\n" + mods + "{2}\n"
"\n*Punti*: " + r['score'] + "\n" "*Punti*: {3}\n"
"*Combo* x" + r['maxcombo'] + "\n" "*Combo* x{4}\n"
"*300*: " + r[ "*300*: {5}\n"
'count300'] + "\n" "*100*: {6}\n"
"*100*: " + r['count100'] + "\n" "*50*: {7}\n"
"*50*: " + r[ "*Awesome*: {8}\n"
'count50'] + "\n" "*Good*: {9}\n"
"*Awesome*: " + r['countkatu'] + "\n" "*Miss*: {10}"
"*Good*: " + r[ .format(r['beatmap_id'],
'countgeki'] + "\n" r['rank'],
"*Miss*: " + r['countmiss'], sentin, source) r['score'],
r['maxcombo'],
r['count300'],
r['count100'],
r['count50'],
r['countkatu'],
r['countgeki'],
r['countmiss']), sentin, source)
elif text.startswith('/roll'): elif text.startswith('/roll'):
print("@" + username + ": /roll") print("@" + username + ": /roll")
cmd = text.split(' ', 1) cmd = text.split(' ', 1)