https://github.com/randogoth/fatumbot.py
Fatum Bot inspired Interface for the Randonautica API, to be used in chatbot implementations.
https://github.com/randogoth/fatumbot.py
fatum-project randonautica randonauts
Last synced: 9 months ago
JSON representation
Fatum Bot inspired Interface for the Randonautica API, to be used in chatbot implementations.
- Host: GitHub
- URL: https://github.com/randogoth/fatumbot.py
- Owner: randogoth
- License: mit
- Created: 2023-05-24T09:59:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T10:19:56.000Z (about 3 years ago)
- Last Synced: 2025-06-07T19:05:35.170Z (about 1 year ago)
- Topics: fatum-project, randonautica, randonauts
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
>>> 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 ` 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']
```