Skip to content

Commit

Permalink
Return to overworld if bot is not ready on startup to refresh pokepor…
Browse files Browse the repository at this point in the history
…tal value.
  • Loading branch information
berichan committed Dec 16, 2022
1 parent 54a71a2 commit 3520dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ If all you want is to request Pokémon, please go there!
This is a custom sysbot, the Scarlet/Violet functionality of this bot is not created or supported by the PKHeX developers, please do not pester them!
[Read the official startup instructions](https://github.com/kwsch/SysBot.NET/wiki/Bot-Startup-Details) if you've never hosted a switch sysbot.

[Download the latest build of this bot here](https://berichan.github.io/GetNHSE?sv)

## Support Discord:

For support on setting up your own instance of this SysBot, feel free to join the discord! (This sysbot isn't supported by the PKHeX-Projects discord, please do not ask for help there or bother them with questions related to this bot.)
Expand Down
2 changes: 2 additions & 0 deletions SysBot.Pokemon/SV/BotTrade/PokeTradeBotSV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public override async Task MainLoop(CancellationToken token)

if (await IsKeyboardOpen(token).ConfigureAwait(false) && await IsConnected(token).ConfigureAwait(false))
await EstablishOverworldPokePortalMinimum(token, true).ConfigureAwait(false);
else
await ReturnToOverworld(token).ConfigureAwait(false);

await RestartGameIfCantTrade(false, null, token).ConfigureAwait(false);

Expand Down

0 comments on commit 3520dd3

Please sign in to comment.