generated from Nemesis/Exemple
async stats
This commit is contained in:
parent
51d49156ba
commit
cabe70468c
1 changed files with 2 additions and 2 deletions
|
|
@ -1570,7 +1570,7 @@ async def last(room,message): # Regarde la dernière fois que quelqu'un a écrit
|
|||
else:
|
||||
await msg(room,pers + " : Personne non reconnue",sender)
|
||||
|
||||
def statistiques(room,message): # Enregistrement des statistiques
|
||||
async def statistiques(room,message): # Enregistrement des statistiques
|
||||
global modules
|
||||
try:
|
||||
rmod = modules[room.room_id, 'stats']
|
||||
|
|
@ -2059,7 +2059,7 @@ async def echo(room, message):
|
|||
async def callStats(room, message):
|
||||
match = botlib.MessageMatch(room, message, bot)
|
||||
if match.is_not_from_this_bot():
|
||||
statistiques(room, message)
|
||||
await statistiques(room, message)
|
||||
|
||||
def rte_token():
|
||||
auth = HTTPBasicAuth(RTE_ID, RTE_SECRET)
|
||||
|
|
|
|||
Loading…
Reference in a new issue