Giter Club home page Giter Club logo

channelpointsminer's Introduction

Channel Points Miner

Documentation

Doc is available on pages.

Disclaimer

This project comes with no guarantee or warranty. You are responsible for whatever happens from using this project. It is possible to get soft or hard banned by using this project if you are not careful. This is a personal project and is in no way affiliated with Twitch.

channelpointsminer's People

Contributors

15sawyer avatar couchoud-t avatar dependabot[bot] avatar rakambda avatar renovate-bot avatar renovate[bot] 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

Watchers

 avatar  avatar  avatar  avatar  avatar

channelpointsminer's Issues

Multiple streamer settings paths

Description

This can allow people to define streamers in different folders if they wanna do some kind of "categories". This could be useful later for #47 to share some (but not all) streamer definitions between accounts.

Could turn the list of paths into a list of objects like:

[
  {
    "path": "/path/to/folder",
    "recursive": true
  }
]

rescursive can be optional and defaulted to false.

Parse received WS messages

  • Message (topics)
    • community-points-user-v1
      • global-last-viewed-content-updated
      • channel-last-viewed-content-updated
      • points-earned
      • points-spent
      • claim-available
      • claim-claimed
    • video-playback-by-id
      • viewcount
      • stream-up
      • stream-down
    • raid
      • raid_update_v2
      • raid_go_v2
    • predictions-channel-v1
      • event-created
      • event-updated
    • commercial
  • Pong (actually handled by the WS library)
  • Response
  • Reconnect

IRC

Still debating on it if it'll be part of it

Balance is sometimes displayed wrong

Description

Seems like points value isn't formatted correctly. Is it a formatting issue or Twitch is sending us wrong data?

Version / commit

23d966e

Relevant log output

[a] ๐Ÿ’ฐ b : Points earned [+10 | WATCH | 186.51K]
[a] ๐Ÿ’ฐ b : Points earned [+10 | WATCH | 1886.52K]
[a] ๐Ÿ’ฐ b : Points earned [+50 | CLAIM | 18685.67K]
[a] ๐Ÿ’ฐ b : Points earned [+10 | WATCH | 186.58K]

[a] ๐Ÿ’ฐ c : Points earned [+10 | WATCH | 100.29K]
[a] ๐Ÿ’ฐ c : Points earned [+10 | WATCH | 129.69K]

[a] ๐Ÿ’ฐ d : Points earned [+60 | CLAIM | 316.K]

Support multiple accounts

Description

Everything should be more or less ready to support this. May have to do some adjustments and document this.

Log context keeps streamer name in WS

Description

In the WS client, the name of the streamer that opened the client is kept in the context and is then logged after wards even if the events has nothing to do with him.

Version / commit

Relevant log output

No response

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Prediction not placed if created before bot start

Description

If a prediction is started before the bot is started and is still ongoing while it is all set up, then no prediction is placed.

Version / commit

0.0.2

Relevant log output

Event update on unknown prediction

Use versions

Description

Use versions & publish develop versions on docker

GQLError when parsing multipliers

Description

Title

Version / commit

0.0.2

Relevant log output

ERROR {} - Failed to handle WebSocket message
com.fasterxml.jackson.databind.JsonMappingException: Could not resolve subtype of [simple type, class fr.raksrinana.channelpointsminer.api.gql.data.types.CommunityPointsMultiplier]: missing type id property '__typename' (for POJO property 'multipliers')

Streamer priorities

  • Constant
  • Subscribed channels
  • Points above
  • Points below
  • Apply priorities logic

Invalid bet result on refund

Description

When a bet is refunded, the result show we lost the points we placed. The actual value should be 0 as we neither lost nor won anything.

Version / commit

0.0.3 dev

Relevant log output

[x] ๐Ÿ’ฐ a: Points earned [+50000 | REFUND]
[x] ๐Ÿงง a: Bet result [REFUND | -50000]

Display config path on error

Description

When getting error Exception in thread "main" java.lang.IllegalStateException: No main config found also display the file path trying to be loaded.

First run with Docker

Description

Java error message stating 'no main config found' despite config seemingly being placed in the correct spot. Example:

image

Please advise on how to use config.json?

Version / commit

0.0.4 / 98ae10a

Relevant log output

PS C:\Users\HomeServer\.docker\Containers\Miner> docker-compose up
[+] Running 1/0
 - Container miner_TwitchMiner_1  Created                                                                          0.0s
Attaching to TwitchMiner_1
TwitchMiner_1  | 21:46:36,244 INFO [main] f.r.c.Main {} - Starting everything up (0.0.4 | 98ae10a | develop)
TwitchMiner_1  | Exception in thread "main" java.lang.IllegalStateException: No main config found
TwitchMiner_1  |        at fr.raksrinana.channelpointsminer.factory.ConfigurationFactory.getInstance(ConfigurationFactory.java:31)
TwitchMiner_1  |        at fr.raksrinana.channelpointsminer.Main.main(Main.java:42)
TwitchMiner_1  | Caused by: java.io.IOException: Is a directory
TwitchMiner_1  |        at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
TwitchMiner_1  |        at java.base/sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:48)
TwitchMiner_1  |        at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:330)
TwitchMiner_1  |        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:296)
TwitchMiner_1  |        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:273)
TwitchMiner_1  |        at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:229)
TwitchMiner_1  |        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
TwitchMiner_1  |        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:107)
TwitchMiner_1  |        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:101)
TwitchMiner_1  |        at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.ensureLoaded(ByteSourceJsonBootstrapper.java:539)
TwitchMiner_1  |        at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.detectEncoding(ByteSourceJsonBootstrapper.java:133)
TwitchMiner_1  |        at com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper.constructParser(ByteSourceJsonBootstrapper.java:256)
TwitchMiner_1  |        at com.fasterxml.jackson.core.JsonFactory._createParser(JsonFactory.java:1655)
TwitchMiner_1  |        at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1083)
TwitchMiner_1  |        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3675)
TwitchMiner_1  |        at fr.raksrinana.channelpointsminer.util.json.JacksonUtils.read(JacksonUtils.java:31)
TwitchMiner_1  |        at fr.raksrinana.channelpointsminer.factory.ConfigurationFactory.getInstance(ConfigurationFactory.java:28)
TwitchMiner_1  |        ... 1 more
TwitchMiner_1 exited with code 1

Fix WS timeout

23:05:27,188 TRACE [] o.j.WebSocketImpl - matched frame: Framedata{ opcode:PONG, fin:true, rsv1:false, rsv2:false, rsv3:false, payload length:[pos:0, len:0], payload:}
[...]
23:05:48,572 INFO [] f.r.t.a.w.TwitchWebSocketClient - WebSocket closed with code 1006, from host true, reason

Add streamer order

Description

Add some kind of ordering to streamers. This could be used when scores are equals.

The lowest order value will win.

Change Discord messages

Description

  • Change discord embeds colors to be more consistent: green for something that lead to points won, red for points loss
  • Add an option to produce simpler messages, with just text not embeds (maybe can use emojis like in Tkd's version)

Enable/Disable accounts from config

Description

Allow to mark an account config as enabled or disabled directly in the config. This allows to configure an account without actually having it mining.

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.