xMistt / fortnitepy-bot

A Fortnite HTTP/XMPP bot coded in Python with party capabilities.
https://partybot.net
Other
358 stars 364 forks source link

time elapsed on a match #76

Closed lambor590 closed 4 years ago

lambor590 commented 4 years ago

When I whisper the bot, for example: !match 4 It sets the state In-game with 4 people left but the time elapsed is the same, and in the console it shows me this:

Task exception was never retrieved future: <Task finished coro=<event_friend_message() done, defined at fortnite.py:185> exception=IndexError('list index out of range')> Traceback (most recent call last): File "fortnite.py", line 814, in event_friend_message datetime.datetime.utcnow() - datetime.timedelta(minutes=int(args[2]) if len(args) >= 2 else 0) IndexError: list index out of range

xMistt commented 4 years ago

If you whisper the bot just !match, what happens then?

lambor590 commented 4 years ago

If you whisper the bot just !match, what happens then?

Then it works, but if I would put a number of players? The time stays at 0

xMistt commented 4 years ago

Fixed in commit https://github.com/xMistt/fortnitepy-bot/commit/346bea4d102b26ee801cce2dbfe92a9ec292a682.