Git Product home page Git Product logo

lorkclient's Introduction

lorkclient: A curses bsjtf lork client, written in python.

To run (Ubuntu):

  • sudo apt-get install python3-requests
  • Optional, macros: sudo apt-get install python3-yaml
  • TERM=xterm-256color python3 lorkclient.py
    • Totally will not work without redefining TERM!

No Windows, sorry. (WINDOWS, Y U NO HAVE CURSES MODULE?)

UPDATE: Turns out there is an unofficial port of curses to Windows. Have fun.

Macros: How do they work?

Macros are a list of commands that are automatically submitted sequentially by the client. The intention is to make it easy to catch back up to a previous state after becoming a Grue snack. To invoke a macro, type a forward slash, followed by the name of the macro. For example, to replay the commands in the if-main of liblork.py:

catchup:
 - global thermonuclear war
 - turn on flashlight
 - west
 - south
 - look at sticky note
 - north
 - use keypad

Once defined, typing /catchup will issue these commands one after another. Macros are defined in custom.yaml and require PyYAML. Any number of macros can be defined one after another. Macros are completely optional, and PyYAML is not required when not using macros.

Known Issues:

HTML tags. Most tags are replaced (br becomes newlines, gt and nbsp are unescaped, b triggers bold color and the font tags trigger red color). Everything else will show up verbatim in your terminal (avoid HELP like the plague!)

lorkclient's People

Contributors

exocron avatar ben0xa avatar

Stargazers

Любосвет Лавров avatar

Watchers

James Cloos avatar  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.