Giter VIP home page Giter VIP logo

bancho.js's People

Contributors

danielpower avatar danielsauve avatar dependabot[bot] avatar ekgame avatar froidland avatar khoohaoyit avatar kiwec avatar omkelderman avatar solwynn avatar thepoon avatar vladfrangu avatar zacc23 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bancho.js's Issues

Juste pour accéder au beatmap osu!

Bonjour(ou bonsoir) je voudrais de l'aide pour accéder au beatmap osu! car je voulais faire un random map request. J'ai fait une clé api si besoin. du coup pour savoir comment l'inclure voici mon code

const Banchojs = require("bancho.js");

const USERNAME = "username"
const PASSWORD = "IRC password"
const API = "api key"

const client = new Banchojs.BanchoClient({
  username: USERNAME,
  password: PASSWORD
});

const prefix = "!";

const startOsuBot = async () => {
  try {
    await client.connect();
    console.log("osu!Bancho Connected...");

    client.on("PM", async ({ message, user }) => {
      //Check if message was sent by ourselves
      if (user.ircUsername === USERNAME) return;

      //Check for message prefix
      if (message[0] !== "!") return;

      const command = message.split(" ")[0].toLowerCase();

      switch (command) {
                case prefix + "help":
          return await user.sendMessage(`All command are in [https://github.com/Bibou1494/BibouOsu-Bancho-Bot GitHub]`);
    });

  } catch (err) {
    console.error(err);
  }
};

startOsuBot();

Merci en avance.
Au revoir.

getUserById doesn't return a valid BanchoUser class

getUserById() doesn't return a valid class
I'm not sure if this is easily fixable since it's dependent on nodesu but it would be nice :)

TypeError: bancho.banchoClient.getUserById(...).sendMessage is not a function

I'm using this workaround for now

let o = await bancho.banchoClient.getUserById(19012828);
bancho.banchoClient.getUser(o.ircUsername).sendMessage("Yo");

ur doc site is down (0.10.1)

idk where else to put this, but ur documentation (https://bancho.js.org/) has been down since 0.10.1 release

i noticed it immediately, but i was just using the source code anyways, assuming you'd put it back up.

but now I assume you've forgotten, so now I'm just letting you know

Crash on DNS request failure

Looks like this afternoon, either osu's dns servers were down, or hetzner cloud had connection issues. As a result, this happened :

events.js:174                                                                                             
      throw er; // Unhandled 'error' event
      ^                                                                                                  
                                                                                                         
Error: getaddrinfo EAI_AGAIN osu.ppy.sh osu.ppy.sh:443                                                   
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)                                        Emitted 'error' event at:                           
    at TLSSocket.socketErrorListener (_http_client.js:401:9)                                             
    at TLSSocket.emit (events.js:198:13)                                                                 
    at emitErrorNT (internal/streams/destroy.js:91:8)                                                    
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)                                             
    at process._tickCallback (internal/process/next_tick.js:63:19)

I'm not really sure how to handle it?

Can't set lobby size to 16

Lobby size is limited to 15, when it should be limited to 16.

if(isNaN(size) && size >= 1 && size <= 16)

An exception is thrown but bancho accepts the command just fine when you type it in manually. Sorry for making an issue on github for a 1-character fix, discord doesn't like my IP :(

version 0.10.0 broken?

(IF NEED MORE CONTEXT THAN BELOW, REPLY)

I was creating a new project with ur latest bancho.js module, and for several hours I thought I was going crazy. Simple methods were not working (BanchoLobby.closeLobby(), the beatmap property under BanchoLobby). I was freaking out because I've ended up using the exact same methods under my older projects (that also used Bancho.js), and they are still working.

And after several hours of freaking out, I decided to copypaste code (just simple execution tests on several things) from a 0.10.0 project to 0.9.7, and am convinced that ur new version is potentially broken.

OLD VERSION(no problems): 0.9.7
NEW VERSION (with many problems on my end): 0.10.0

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.