Giter Site home page Giter Site logo

asfenhance's Introduction

Chr_

wakatime GitHub followers GitHub User's stars

Bilibili Steam


捐赠 / Donate

Steam

我很可爱, 请给我打钱.jpg

img img img
爱发电
链接
buy me a coffee
链接
USDT
TW41eecZ199QK6zujgKP4j1cz2bXzRus3c

链接 / Links

个人简介 / Smmary

  • 全职 Java / .NET 开发

  • 安卓 Kotlin / MAUI / Xposed 开发

  • 咸鱼脚本开发者

  • 毕业时长一年半的普通打工人

  • FPS Galgame 爱好者

技能树 / Skills

  • .NET Web 开发 WinForm 开发, MAUI 开发

  • Java Web 开发 Netty

  • 脚本语言开发 (包括但不限于 Python JS TS PHP Shell VBS)

  • Python Web 开发 爬虫

  • 咸鱼 CTFer, 主攻 Re, Misc, Pwn

  • 菜鸡前端 原生 JS Vue React (忘光了)

  • 嵌入式开发 (忘光了)

维护中的项目 / Projects under maintenance

存档项目 / Archived projects

asfenhance's People

Contributors

1337posan avatar chr233 avatar dependabot[bot] avatar eve-player avatar gitter-badger avatar guihkx avatar henkerx64 avatar iskyil avatar justarchi avatar molecul avatar nuckle avatar rekandy avatar rudokhvist avatar xtcry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asfenhance's Issues

ASF 5.2.x support

Hi. First of all, thanks for this wonderful project :)

I was wondering if you have plans to support ASF 5.2.x, which now uses net6.0 by default.

Thanks

Alias overlap with another plugin's alias

I notice you use GA as an alias for GAMEAVATAR:

{ "GA", "GAMEAVATAR"},

The issue is that it overlaps with an alias used by Citrinate/BoosterManager for !gems ASF.

I would suggest to adopt a 3-letter alias for GAMEAVATAR, similar to how you used:

  • PFL for PROFILELINK
  • SEA for SETAVATAR
  • etc.

{ "PFL", "PROFILELINK" },

{ "RGA", "RANDOMGAMEAVATAR"},
{ "SEA", "SETAVATAR" },

Maybe GMA or GAV?


Morevoer, I believe aliases should avoid to end with the letter A unless it means to broadcast the command to every bot ASF.
So I would favor GAV.

In total, there are 3 commands which end with the letter A without meaning ASF:

{ "GA", "GAMEAVATAR"},
{ "RGA", "RANDOMGAMEAVATAR"},
{ "SEA", "SETAVATAR" },

Maybe change these to GAV, RGAV, SEAV?

About `PURCHASE` Command

Describe the bug / Bug 描述
Hi,
I don't know if it's a bug or not, but when i add for example 5 games to cart and buy for 100 bots, it only buy on about 15 accounts and nothing happens after that, and i think it's related to rate limits since we sending too much request.

ASFenhance 遇到错误, 日志如下
==========================================
 - 原始消息: TEST
 - Access: Owner
 - ASF 版本: 5.4.1.11
 - 插件版本: 1.7.9.0
==========================================
{
  "EULA": true,
  "Statistic": true,
  "DevFeature": false
}
==========================================

[bug] some commands throw `unknown command`

Not sure if it's just a case of these commands in your readme not being implemented fully or my account being weird or something, but these commands end up giving me a Unknown command! message and throwing errors in the log when input into ASF.

The commands are as followed:

EXPLORER and EX throws:

2022-06-24 19:26:13|ArchiSteamFarm-2265|ERROR|ASF|OnBotCommand() System.NullReferenceException: Object reference not set to an instance of an object.
   at ASFEnhance.Explorer.ReflectionHelper.GetPrivateField[T](Object instance, String fieldname)
   at ASFEnhance.Explorer.Command.ResponseExploreDiscoveryQueue(Bot bot)
   at ASFEnhance.ASFEnhance.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)
   at ArchiSteamFarm.Core.Utilities.InParallel[T](IEnumerable`1 tasks)
   at ArchiSteamFarm.Plugins.PluginsCore.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)

Was running ASF Version 5.2.7.6 and noticed these commands not working, so thought it might have been a change in a pre-release that made it not work, but I tested on ASF Version 5.2.6.3 and these commands still do not seem to work. so not really sure if it's something wrong on my end or it's just that they are not fully implemented?

This is all running ASFEnhance Version 1.6.6.621

There are a couple commands that I did not test as they are to do with adding/removing demos/licenses/comments and all the cart commands

edited out the commands that are now working

Feature: JS function for quickly getting list application IDs from your nomination page

A function for quickly getting a list of application IDs from the selected nomination page.

(() => {
    const rows = document.querySelectorAll('.nomination_rows a.younominated_game');
    const ids = Array(...rows).map((e) => e.href.match(/\/app\/([0-9]+)\//i)[1]);
    console.log('IDs:', ids.join());
})();

Run in console on page https://store.steampowered.com/steamawards/nominations/*STEAMID_64*?k=*KEY*

Add a new command

Please add, if possible, a command to imitate view guide in steam overlay
image

Feature: add for all `events` configurable `Delay`

This line is missing in many web requests
b2f0962#r90873643

I often get an error when executing an event command.
Example:

2022-11-23 07:12:22|ArchiSteamFarm-262211|DEBUG|anyAccount|InternalRequest() Unauthorized <- POST https://store.steampowered.com/steamawards/nominategame
2022-11-23 07:12:22|ArchiSteamFarm-262211|WARN|anyAccount|UrlPost() Request failed after 5 attempts!
2022-11-23 07:12:22|ArchiSteamFarm-262211|DEBUG|anyAccount|UrlPost() Request failed: https://store.steampowered.com/steamawards/nominategame

It is sometimes possible to nominate 7/11 applications. Will have to run the command again.
This problem occurs when running on one account, and what can we say about 5 or more...

Therefore, I think it is necessary to add more configurable delays for web requests, as is done in ASF.

I repeat, thank you very much for your work, and if you can't implement it in the near future, I can create a PR myself, but next year.

Error while initializing plugins (after update)

2021-11-30 20:47:48|ArchiSteamFarm-29543|INFO|ASF|InitPlugins() Initialization Plugins...
2021-11-30 20:47:48|ArchiSteamFarm-29543|ERROR|ASF|InitPlugins() Не удалось из-за ошибки: ASFEnhance, Version=1.5.9.216, Culture=neutral, PublicKeyToken=null
2021-11-30 20:47:48|ArchiSteamFarm-29543|ERROR|ASF|InitPlugins() System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'ArchiSteamFarm, Version=5.1.5.2, Culture=neutral, PublicKeyToken=xxx'. The system cannot find the file specified.

Fix-1 version error (*.dll invalid!)

2021-06-27 11:09:52|ArchiSteamFarm-13715|ERROR|ASF|LoadAssembliesFrom() /root/ASF/plugins/ASFEnhance/ASFEnhance-fix-1.dll неверен! 2021-06-27 11:09:52|ArchiSteamFarm-13715|WARN|ASF|LoadAssembliesFrom() System.BadImageFormatException: Bad IL format. The format of the file '/root/ASF/plugins/ASFEnhance/ASFEnhance-fix-1.dll' is invalid. at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String assemblyPath, String nativeImagePath) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at ArchiSteamFarm.Plugins.PluginsCore.LoadAssembliesFrom(String path)

Add a new command

Please add, if possible, a command to imitate the presence at the event broadcasts, for example WATCHEVENT, which would imitate +-30 minutes by default. viewing, or permanent command WATCH [Bots] (broadcast link)
image

`vote <specific bot>` doesn't seem to work

I have two bots: triplex and singer.

When I run this in ASF-Ui "Commands" page:

vote triplex 1245620,1849900,108600,648800,698670,1637320,1142710,1462040,1703340,1455840,1794680

ASFEnhance seems to vote using singer instead of triplex, judging by ASF's response:

image

  • ArchiSteamFarm 5.4.0.3
  • ASFEnhance 1.7.4.0

Thanks!

[Bug] DECK command return Network Error

Describe the bug / Bug 描述
Describe what the bug is
简单描述一下是什么 bug

使用DECK命令时会返回Network Error, 其他活动命令能正常使用。
Windows和Linux环境均有此问题。
image

Error Log / 错误日志
Please paste the error log of ASFEnhance, for example
请在此粘贴 ASFEnhance 的错误日志, 示例如下

无错误日志

[Bug] Overlap of commands for the alias FC

The alias FC is a shorthand for FRIENDCODE and cannot be used as a shorthand for FOLLOWCURATOR. See below:

Profile Commands

Command Shorthand Access Description
FRIENDCODE [Bots] FC FamilySharing Get bot's friend code

Curator Commands

Command Shorthand Access Description
FOLLOWCURATOR [Bots] <ClanIDs> FC Master Follow specified curator

new functions (commands)

You have specific commands for Curator.

Can you add one generic command to remove all Curators at once?
Unfollow all curators.

will you update the event?

at the moment only gets the first level badge for 25 experience, and the "event asf" command does not work. with this command, only 1 bot gets +25 experience.

group commands error

Hello, JOINGROUP and GROUPLIST doesn't work, I get this everytime I run one of them :

ASFenhance encountered error, error logs below
==========================================
- Origin Message: gl asf
- Access: Owner
- ASF Version: 5.2.7.7
- Plugin Version: 1.6.8.661
==========================================
null
==========================================
- Exception Type: System.NullReferenceException
- Exception Message: Object reference not set to an instance of an object.
at ASFEnhance.ASFEnhance.ResponseCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)
at ASFEnhance.ASFEnhance.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)

Suggestion: Gifting to multiple bots/friends?

I think it would an interesting feature if you could just automate purchasing stuff as gifts for multiple people.

For example
command-subID-botnames

!purchasegift 529665 bot1,bot2,bot3
or instead of bot1,bot2 to be able to enter steamID64s of friends (along with a message maybe?)

Does it get the Summer Sale event rewards?

I see it was updated 5 hours ago, but the release is older than that, and i cannot compile the project (I have no idea how git stuff works).
I tried compiling with VSCode but it gives errors.

Will there be a release with the summer event update?

Edit: Sorry, my bad, i didn't see you mentioned it's not ready yet. I will close this.

logs

there is no information in the ASF logs about what the "ASFEnhance" plugin leaves behind.

for example, the information after the "POINTS ASF" command.

Community Leader

didn't you have the function of earning the community leader badge? I seem to have done it through your plugin in the summer, but now there is nothing ...

steam awards badge

The steam awards is back since yesterday, can you update for the event ?

Thanks for your work btw its amazing

命令EXPLORER ASF 报错

ERROR ASF > OnBotCommand() System.NullReferenceException: Object reference not set to an instance of an object.
at ASFEnhance.Explorer.ReflectionHelper.GetPrivateField[T](Object instance, String fieldname)
at ASFEnhance.Explorer.Command.ResponseExploreDiscoveryQueue(Bot bot)
at ASFEnhance.Explorer.Command.<>c.<ResponseExploreDiscoveryQueue>b__1_1(Bot bot)
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at System.Threading.Tasks.Task.WhenAll[TResult](IEnumerable`1 )
at ArchiSteamFarm.Core.Utilities.InParallel[T](IEnumerable`1 tasks)
at ASFEnhance.Explorer.Command.ResponseExploreDiscoveryQueue(String botNames)
at ASFEnhance.ASFEnhance.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)
at ArchiSteamFarm.Core.Utilities.InParallel[T](IEnumerable`1 tasks)
at ArchiSteamFarm.Plugins.PluginsCore.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)

[Bug] Error while purchasing games, but it works.

When purchasing games, the plugin executes requests successfully, purchasing all games without any problem. However, the log does not return a confirmation message, but another error. It doesn't impact how the plugin works once the games are purchased, but it's a bug you might be interested in looking at later.

 - Exception Type: System.MissingMethodException
 - Exception Message: Method not found: 'System.Collections.Generic.IEnumerable`1<AngleSharp.Dom.IElement> ArchiSteamFarm.Core.Utilities.SelectNodes(AngleSharp.Dom.IDocument, System.String)'.
   at ASFEnhance.Cart.HtmlParser.ParseCartPage(HtmlDocumentResponse response)
   at ASFEnhance.Cart.WebRequest.ClearCart(Bot bot)
   at ASFEnhance.Cart.Command.ResponsePurchaseSelf(Bot bot)
   at ArchiSteamFarm.Core.Utilities.InParallel[T](IEnumerable`1 tasks)
   at ASFEnhance.Cart.Command.ResponsePurchaseSelf(String botNames)
   at ASFEnhance.ASFEnhance.ResponseCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)
   at ASFEnhance.ASFEnhance.OnBotCommand(Bot bot, EAccess access, String message, String[] args, UInt64 steamID)

Running ASF 5.3.0.1 and latest version of ASFEnhance.

Replacing a new plugin file if the backup file already exists

A problem has been identified that when updating the plugin again, without restarting ASF, an error occurs when creating a backup again.

2022-11-23 11:57:42|ArchiSteamFarm-244142|ERROR|ASF|ResponseUpdatePlugin() System.IO.IOException: The file '/app/plugins/ASFEnhance.bak' already exists.
   at System.IO.FileSystem.LinkOrCopyFile(String , String )
   at System.IO.FileSystem.MoveFile(String , String , Boolean )
   at System.IO.File.Move(String , String , Boolean )
   at ASFEnhance.Update.Command.ResponseUpdatePlugin()

A solution to the problem: Replacing a new plugin file if the backup file already exists

Leave group

When I try leaving a group it says success and doesn't do anything and join your group which I never wanted to do

Can you please not do that ? and is it possible to fix that? thank you

new functions (commands)

You recently added the command "ADDBOTFRIEND" (Community Commands).

I suggest adding the following commands:

  1. the list of friends of the bot "friendlist" (example).
  2. remove the friend "delfriend" (example).
  3. remove all friends "delallfriends" (example).

You can also add a few commands for the "Group Commands" section:
4. exit all groups "LEAVEALLGROUP" (example).

new functions (commands)

Additional function in this command - CLEARNOTIFICATION
Please add to make all unread messages as read.

To clear this.
image

Thanks for this awesome plugin. <3

1.7.2.0 dll wrong version

1.7.2.0 dll has wrong version 1.7.1.0

image

Because of that, AV & AU always show that there is a new version, even though the user has the latest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.