Skip to content

jckirton/hackmudChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackmud Python Chat API

Setup

First, as per usual: clone this repository to wherever you want to work. You want to work in this folder, with the contents of the repository.

If you run setup.sh and have python installed, it should:

  • Create a python venv called .venv in the workspace directory
  • Install requests into the venv
  • Run setup.py (input of chat_pass needed)
  • Delete itself.

This should set everything up, including your chat token and user info, which will be stored in config.json.

When you need to update these, just run setup.py again.

Usage

Make sure to have from chat import ChatAPI at the beginning of every python file. This will give you the ChatAPI class, which you want to make an instance of.

Snippets

There is a file called chatAPI.code-snippets. If you prefer to not use the functions I have made and instead want just the raw API code, this file has snippets containing exactly that; just uncomment the contents.

About

A python development environment for the hackmud chat API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published