Slither.io-bot icon indicating copy to clipboard operation
Slither.io-bot copied to clipboard

Ability to join a specific server

Open tjorim opened this issue 8 years ago • 9 comments

It would be nice to be able to connect to a specified server. Using another mod interferes with the bot and keypressed most of the time.

tjorim avatar May 12 '16 17:05 tjorim

Seems like a cool feature...

ermiyaeskandary avatar May 12 '16 18:05 ermiyaeskandary

This MIT licensed code seems to work well: https://github.com/LukeeeeBennett/slither-nest (Enabling this simultaneously with ours doesn't seem to cause a problem either actually)

tjorim avatar May 12 '16 18:05 tjorim

hmmm +auto dentect and connect server to low PING ?

Seple avatar May 16 '16 22:05 Seple

Anyone able to do this quick ? Needed

ermiyaeskandary avatar May 31 '16 18:05 ermiyaeskandary

The key seems to be in window.bso. Here's a JSONification of the object with circular references removed. I'm working on it at the moment, but happy if anyone else wants to have a play.

window.bso = 
{
    "ip":"149.202.210.164",
    "po":446,
    "ac":34,
    "wg":39,
    "clu":10,
    "cluo":{
        "sis":[
            {
                "ip":"149.202.216.100"
            },
            {
                "ip":"149.202.210.164"
            },
            {
                "ip":"149.202.217.68"
            },
            {
                "ip":"149.202.210.171"
            },
            {
                "ip":"149.202.216.99"
            },
            {
                "ip":"149.202.210.83"
            },
            {
                "ip":"149.202.217.67"
            },
            {
                "ip":"149.202.216.43"
            },
            {
                "ip":"149.202.216.155"
            },
            {
                "ip":"149.202.210.163"
            },
            {
                "ip":"149.202.217.66"
            },
            {
                "ip":"149.202.210.66"
            },
            {
                "ip":"149.202.210.74"
            },
            {
                "ip":"149.202.210.90"
            },
            {
                "ip":"149.202.217.50"
            },
            {
                "ip":"149.202.210.170"
            },
            {
                "ip":"149.202.216.146"
            },
            {
                "ip":"149.202.216.98"
            },
            {
                "ip":"149.202.216.122"
            },
            {
                "ip":"149.202.217.58"
            },
            {
                "ip":"149.202.204.145"
            },
            {
                "ip":"149.202.216.25"
            },
            {
                "ip":"149.202.216.9"
            },
            {
                "ip":"149.202.210.169"
            },
            {
                "ip":"149.202.217.65"
            },
            {
                "ip":"149.202.197.192"
            },
            {
                "ip":"149.202.210.168"
            },
            {
                "ip":"149.202.210.80"
            },
            {
                "ip":"149.202.217.64"
            }
        ],
        "ptms":[
            247,
            65,
            70,
            23
        ],
        "swg":1869,
        "tac":1724,
        "sos":[
            {
                "ip":"149.202.217.64",
                "po":443,
                "ac":100,
                "wg":105,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.056179775280898875
            },
            {
                "ip":"149.202.210.80",
                "po":446,
                "ac":60,
                "wg":65,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.09095773140716962
            },
            {
                "ip":"149.202.210.168",
                "po":444,
                "ac":64,
                "wg":69,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.12787586944890317
            },
            {
                "ip":"149.202.197.192",
                "po":446,
                "ac":38,
                "wg":43,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.15088282504012843
            },
            {
                "ip":"149.202.217.65",
                "po":475,
                "ac":132,
                "wg":137,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.22418405564472982
            },
            {
                "ip":"149.202.210.169",
                "po":444,
                "ac":6,
                "wg":11,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.23006955591225256
            },
            {
                "ip":"149.202.216.9",
                "po":446,
                "ac":16,
                "wg":21,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.24130551096843234
            },
            {
                "ip":"149.202.216.25",
                "po":446,
                "ac":95,
                "wg":100,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.29481005885500267
            },
            {
                "ip":"149.202.204.145",
                "po":444,
                "ac":28,
                "wg":33,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.31246655965757086
            },
            {
                "ip":"149.202.217.58",
                "po":444,
                "ac":6,
                "wg":11,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.3183520599250936
            },
            {
                "ip":"149.202.216.122",
                "po":444,
                "ac":45,
                "wg":50,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.34510433386837874
            },
            {
                "ip":"149.202.216.98",
                "po":446,
                "ac":99,
                "wg":104,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.4007490636704119
            },
            {
                "ip":"149.202.216.146",
                "po":475,
                "ac":35,
                "wg":40,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.42215088282504004
            },
            {
                "ip":"149.202.210.170",
                "po":443,
                "ac":121,
                "wg":126,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.4895666131621187
            },
            {
                "ip":"149.202.217.50",
                "po":444,
                "ac":55,
                "wg":60,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.5216693418940609
            },
            {
                "ip":"149.202.210.90",
                "po":446,
                "ac":93,
                "wg":98,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.5741037988228999
            },
            {
                "ip":"149.202.210.74",
                "po":446,
                "ac":15,
                "wg":20,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.5848047084002139
            },
            {
                "ip":"149.202.210.66",
                "po":444,
                "ac":19,
                "wg":24,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.5976457998929908
            },
            {
                "ip":"149.202.217.66",
                "po":444,
                "ac":2,
                "wg":7,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.6013911182450508
            },
            {
                "ip":"149.202.210.163",
                "po":446,
                "ac":67,
                "wg":72,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.6399143927233815
            },
            {
                "ip":"149.202.216.155",
                "po":444,
                "ac":21,
                "wg":26,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.6538255751738897
            },
            {
                "ip":"149.202.216.43",
                "po":475,
                "ac":158,
                "wg":163,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.7410379882289995
            },
            {
                "ip":"149.202.217.67",
                "po":475,
                "ac":53,
                "wg":58,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.7720706260032103
            },
            {
                "ip":"149.202.210.83",
                "po":446,
                "ac":43,
                "wg":48,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.7977528089887641
            },
            {
                "ip":"149.202.216.99",
                "po":475,
                "ac":134,
                "wg":139,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.8721241305510969
            },
            {
                "ip":"149.202.210.171",
                "po":446,
                "ac":18,
                "wg":23,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.8844301765650081
            },
            {
                "ip":"149.202.217.68",
                "po":444,
                "ac":11,
                "wg":16,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":0.8929909042268593
            },
            "[Circular ~]",
            {
                "ip":"149.202.216.100",
                "po":475,
                "ac":156,
                "wg":161,
                "clu":10,
                "cluo":"[Circular ~.cluo]",
                "ptm":101.25,
                "ptv":1
            }
        ],
        "ps":null,
        "stm":1464722531812
    },
    "ptm":101.25,
    "ptv":0.9138576779026217
}

Defimatt avatar May 31 '16 19:05 Defimatt

Oh wait, just seen @tjorim 's comment about https://github.com/LukeeeeBennett/slither-nest . Happy if someone wants to merge that into our code before I've got my head around window.bso myself.

Defimatt avatar May 31 '16 19:05 Defimatt

@MattDuffin Lots of scripts have this functionality - including the one mentioned above. It's just a matter of porting it

ermiyaeskandary avatar May 31 '16 19:05 ermiyaeskandary

We could display the list of servers and then a input box or a drop down box to select one ...

ermiyaeskandary avatar May 31 '16 19:05 ermiyaeskandary

We don't need to do anything complicated, especially if we're just adding this as a prerequisite to #265. It seems that writing directly to window.bso.ip & window.bso.po then dying take you to that server.

I don't have any more time to experiment tonight, I might have a go at porting slither-nest tomorrow after work if nobody's got there before me.

Matt signing off.

Defimatt avatar May 31 '16 19:05 Defimatt