mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-02-25 06:05:03 +00:00
faceroll
This commit is contained in:
parent
8efa7d0168
commit
e378864f77
1 changed files with 13 additions and 9 deletions
8
bot.py
8
bot.py
|
@ -522,8 +522,9 @@ def match():
|
||||||
del cmd[0]
|
del cmd[0]
|
||||||
for name in cmd:
|
for name in cmd:
|
||||||
if username in royalgames:
|
if username in royalgames:
|
||||||
if "steam" in royalgames[name]:
|
if "steam" in royalgames[name.lower()]:
|
||||||
tobematched.append(royalgames[name]["steam"])
|
tobematched.append(royalgames[name.lower()]["steam"])
|
||||||
|
if tobematched > 2:
|
||||||
m = list(steammatch.compare(tobematched))
|
m = list(steammatch.compare(tobematched))
|
||||||
# Prepara il messaggio
|
# Prepara il messaggio
|
||||||
tosend = str()
|
tosend = str()
|
||||||
|
@ -531,6 +532,9 @@ def match():
|
||||||
tosend += "- {game}\n".format(game=game)
|
tosend += "- {game}\n".format(game=game)
|
||||||
# Manda il messaggio
|
# Manda il messaggio
|
||||||
telegram.sendmessage(tosend, sentin, source)
|
telegram.sendmessage(tosend, sentin, source)
|
||||||
|
else:
|
||||||
|
telegram.sendmessage(chr(9888) + "Non sono stati specificati abbastanza utenti per eseguire l'intersezione.",
|
||||||
|
sentin, source)
|
||||||
|
|
||||||
|
|
||||||
# Ciclo principale del bot
|
# Ciclo principale del bot
|
||||||
|
|
Loading…
Add table
Reference in a new issue