Git Product home page Git Product logo

fatumbot.py's Introduction

FatumBot.py

A Fatum Bot inspired Interface Class for the Randonautica API, to be used in chatbot implementations. Requires a valid Randonautica API token.

Dependencies

The class requires the Requests module. Install by:

$ pip install requests

Usage

>>> from dotenv import load_dotenv
>>> from fatumbot import FatumBot

>>> # load the Randonautica API token
>>> load_dotenv()
>>> RNDO_TOKEN = os.getenv('RNDO_TOKEN')

>>> # instantiate the class and generate points
>>> r = FatumBot(RNDO_TOKEN)
>>> coords = stringToGeo("29.97913,31.13427")
>>> r.setLocation('user1', coords['lat'], coords['lon'])

['Location set with radius 2000.\nUse `/radius <radius>` if you want to change your search radius.']

>>> r.setRadius('user1', 1800)

['Your search radius has been set to 1800 meters!']

>>> r.fetchBlindspot('user1', 'quantum')

['Blindspot found:\nEntropy: `temporal`\nLatitude: `29.9812`\nLongitue: `31.1439`\nDistance: `958.53`m\nBearing: `76.22`°', 'geo:29.9812,31.1439']

>>> r.fetchAnomaly('user1', 'attractor')

['Attractor anomaly found:\nEntropy: `temporal`\nLatitude: `29.9812`\nLongitue: `31.1439`\nPower: `3.26`\nRadius: `67`m\nZ-score: `3.56`\nDistance: `958.53`m\nBearing: `76.22`°', 'geo:29.9812,31.1439']

fatumbot.py's People

Contributors

randogoth 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.