Git Product home page Git Product logo

netherbot's People

Contributors

kendoros avatar mpopp avatar

Watchers

 avatar  avatar  avatar

netherbot's Issues

Reset session points on stream go-live

For now, as the bot runs locally, implement a "reinitialize" command which can be issued by mods. The command sets all viewers to offline, resets the session points and sets all viewers in chat to online again.

Bot should check for stream go-live and reset session points for viewers.

Implement bet command

Bet command should add the possibility to bet on the outcome of a game.
Command syntax should be the following: !bet [win|lose] [points]

If the viewer bet correct, the points should be multiplied with a factor configurable in properties file and the amount should be added to the viewers wallet.
If the viewer bet incorrect, the points should be lost (and therefore subtracted form the viewers wallet).

The bot mustn't respond with a message to a !bet command, for staying within the 21 messages per 30 seconds restriction of twitch chat.

Rework raffle command

Reset session points of winner.

Don't remove the winner from the raffle pool (since session points are reset, chances for a double win are low anyways).

calibrate level curve service

Currently the factor and starting points for that service are just set to some random values.

Calibrate the level curve with values that make actually sense and provide viewers with a smooth leveling experience (i.e. you shouldn't reach level 60 in the first streaming session right away).

Tasks:

  • Define level progression speed
  • Set values to match the progression definition

Rework point gain

We want viewers to level up.
Level is determined by total points.
Needed points to get to next level is determined by this function:
f(1) = 1;
f(x) = f(x-1) * 1.2

Put the function into a strategy to be flexible there!

total point gain is determined by viewer "value":
lurker: 1p / time
follower: 2p / time
subscriber 5p / time
Put that one into a separate object too... makes the whole point gain more configurable.

session point gain is determined by total point gain rules + factor which scales by viewer level.

Implement chat activity check for raffle participants

Only people active in chat should be considered in raffles. This should prevent bots gathering a high total win chance for the bot's owner.

However, totalpoints and session points should still be collected for the viewers that are NOT active in chat (so that they have their high chance if they were lurking for a long time).

Change Datastore

Use a centralized datastore instead of hibernate.

Preferably nosql to avoid schema redefinition, we just don't want to bother with schemas now.

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.