Giter Site home page Giter Site logo

infinitygauntlet's People

Contributors

a1igator avatar arionmiles avatar dsteve595 avatar slapbot avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

infinitygauntlet's Issues

Proposal for new method of selecting Ill Fated.

Hey guys i was just wondering if you'd considered alternative methods for selecting those to be banned? My concern is you have to enter the amount to be banned and theoretically this process will take a few days (as the bot will be rate limited). The obvious problem here is that we won't achieve a perfect balancing.

I propose the following solution, we completely remove the random sampling. I've created a python script to show that you can simply use random in python to achieve a perfect balancing. Over 10 trials of 200,000 runs per trial i have shown that random.randint(0, 1) achieves a perfect 50/50 split.

I propose a pull request whereby we run my script to populate an arbitrarily large list, 300,000 or so but larger than the subscriber population. This list is simply 0s and 1s, even or odd. Then something like this should work with a change to the ban method where it now takes a user to be banned and simply bans.

for fate, user in zip(ban_list, user_data):
    if fate == 0: ban(user)

The list is space inefficient and creating it is time inefficient but traversing the list with zip is o(1) in python 3. This should also prevent any sort of failing under load or anything like this. Creation of the lists happens elsewhere and the bot slowly iterates through the lists destroying as it travels.

Script is uploaded as .txt because github is annoying.
fate_selector (change me back to .py)
Results of a run.

Update: Admins are making the bot.

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.