gsd 2 months ago
parent
commit
33e80cbb11
  1. 18
      tradebot.facti13.external.py

18
tradebot.facti13.external.py

@ -220,14 +220,14 @@ class SteamClient(SteamPy.Client):
seconds = self.items.Items2Seconds(trade.receiving)
result = await self.backend.vip(trade.user, seconds, extra, unique=f"steam_{trade.id}")
if result == 99:
await send_msg(trade, "Спасибо за вещи, но у тебя уже есть КРУТЫЕ права на фактах")
elif result == 100:
await send_msg(trade, f"Мои поздавления! Ты получил випку на {seconds / 60 / 60 / 24} дней")
elif result == 101:
await send_msg(trade, f"Круто! Ты продлил випку на {seconds / 60 / 60 / 24} дней")
else:
await send_msg(trade, "Произошла ошибка добавление випа, сообщи об этом разрабу")
#if result == 99:
# await send_msg(trade, "Спасибо за вещи, но у тебя уже есть КРУТЫЕ права на фактах")
#elif result == 100:
# await send_msg(trade, f"Мои поздавления! Ты получил випку на {seconds / 60 / 60 / 24} дней")
#elif result == 101:
# await send_msg(trade, f"Круто! Ты продлил випку на {seconds / 60 / 60 / 24} дней")
#else:
# await send_msg(trade, "Произошла ошибка добавление випа, сообщи об этом разрабу")
return
@ -274,5 +274,5 @@ if __name__ == "__main__":
password = password,
shared_secret=secrets["shared_secret"],
identity_secret=secrets["identity_secret"],
debug = True
debug = False
)

Loading…
Cancel
Save