Skip to content

Commit

Permalink
Remove pausing farming on load
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian committed Sep 5, 2019
1 parent 660184d commit e626297
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion SteamInviteHelper-ASF/SteamInviteHelper-ASF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RootNamespace>SteamInviteHelper_ASF</RootNamespace>
<AssemblyVersion>1.0.1</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand All @@ -18,7 +19,7 @@
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y &quot;$(TargetPath)&quot; &quot;$(SolutionDir)ArchiSteamFarm\ArchiSteamFarm\bin\Release\netcoreapp2.2\plugins&quot;" />
<Exec Command="copy /Y &quot;$(TargetPath)&quot; &quot;$(SolutionDir)ArchiSteamFarm\ArchiSteamFarm\bin\Release\netcoreapp2.2\plugins\SteamInviteHelper-ASF&quot;" />
</Target>

</Project>
15 changes: 6 additions & 9 deletions SteamInviteHelper-ASF/SteamInviteHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,21 @@ public void OnASFInit(IReadOnlyDictionary<string, JToken> additionalConfigProper
}
}

public Task<string> OnBotCommand(Bot bot, ulong steamID, string message, string[] args){ return null; }
public Task<string> OnBotCommand(Bot bot, ulong steamID, string message, string[] args) { return null; }

public void OnBotDestroy(Bot bot){ }
public void OnBotDestroy(Bot bot) { }

public void OnBotDisconnected(Bot bot, EResult reason){ }
public void OnBotDisconnected(Bot bot, EResult reason) { }

public Task<bool> OnBotFriendRequest(Bot bot, ulong steamID)
{
FriendInviteHandlers.GetOrAdd(bot, new FriendInviteHandler()).processFriendRequest(steamID, bot);
return Task.FromResult(false);
}

public void OnBotInit(Bot bot){ }
public void OnBotInit(Bot bot) { }

public async void OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JToken> additionalConfigProperties = null)
{
await bot.Actions.Pause(true).ConfigureAwait(false);
}
public void OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JToken> additionalConfigProperties = null) { }

public void OnBotLoggedOn(Bot bot)
{
Expand All @@ -60,7 +57,7 @@ public Task<string> OnBotMessage(Bot bot, ulong steamID, string message)
return null;
}

public void OnBotSteamCallbacksInit(Bot bot, CallbackManager callbackManager){ }
public void OnBotSteamCallbacksInit(Bot bot, CallbackManager callbackManager) { }

public IReadOnlyCollection<ClientMsgHandler> OnBotSteamHandlersInit(Bot bot)
{
Expand Down

0 comments on commit e626297

Please sign in to comment.