Git Product home page Git Product logo

otomat's Introduction

18/12/20, DofusRemote passe désormait close-source. Les prospositions majeures que j'avais à faire sur l'architecture sont faîtes, j'en continuerais le développement en privé pendant un moment.

DofusRemote Client

Otomat est développé par une seule dans le seul but d'obtenir de nouvelles connaissances dans divers domaines. Les fonctionnalités ne seront pas poussées et toute aide est bienvenue afin de fournir une base de projet stable et propre.

Invitation Discord: https://discord.gg/Ctg86d4

Packages

  • ignitor -> CLI permettant l'orchestration de vos différents bots.
  • kernel -> Noyaux gérant vos bots, plugins.
  • client -> Instance gérant la connexion d'un bot individuellement.
  • plugin -> Ajoute les fonctionnalités aux bots.
  • token -> Génère les tokens de connexion des bots.
  • version -> Récupère les dernières versions du jeu.

Exemple

const Kernel = require('@dofus-remote/kernel')
const Client = require('@dofus-remote/client')
const Version = require('@dofus-remote/version')
const AuthPlugin = require('@dofus-remote/plugin/Auth')
const GamePlugin = require('@dofus-remote/plugin/Game')

async function run(login, password, country, language, serverId, characterId) {
  const version = await Version.get(country, language)
  const kernel = new Kernel(version)
  kernel.plugins.add(AuthPlugin)
  kernel.plugins.add(GamePlugin)
  kernel.clients.add(new Client(login, password, country))
  kernel.plugins.flush()
  
  for (const client of kernel.clients) {
    await client.connect()
    await kernel.api.auth.begin(client)
    await kernel.api.auth.play(client, serverId)
    await kernel.api.game.play(client, characterId)
  }
}

run('login', 'password', 'country', 'language', 0, 0)
  .then(console.log)
  .catch(console.error)

otomat's People

Contributors

tanukijs avatar

Watchers

 avatar

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.