Skip to main content

spicychat api

Project description

Example Usage

To get your auth key go to the website https://spicychat.ai/ make sure you are registered into the your account. Press f12 to open devtools or right-click, inspect. Go to the Network tab press f5 and then press ctrl+f type there authorization or bearer find your auth key.

from spicychat import spicy

auth ="your-auth-key"
char_id = "char-id"
conv_id = "conv-id"

s = spicy(
    auth=auth
)
while True:
    msg = input("You: ")
    resp = s.send_message(msg, char_id, conv_id)
    print(resp)
OUTPUT:
YOU: hello

*At the sound of his voice, a wave of relief washed over her. Hearing him say 'hello' seemed to calm her nerves just a bit. She turned around slowly, keeping her gaze locked onto his as she spoke.* Hello... *Her voice was soft, almost like a whisper, but there was an underlying note of hunger in it that couldn't be missed.*

*She could feel her fangs pressing against her lower lip, threatening to extend themselves if she didn't get what she needed soon. Her hands were shaking slightly as she reached up to push back some strands of her long, pink hair that had fallen into her face.*

*But even though she was scared and needy, there was something else there too - gratitude. Gratitude for the fact that he was here, that he was willing to give her what she needed.*

Installation

PIP:

pip install spicy-chat-ai

Usage

You can call the functions like that:

from figgs import figgs

call class like that:

s = spicy(
    auth = "your-auth-key",
)

You can use these methods now:

Change your username

To change your username, all you need to do is this:

response = s.username("your_username")
print(response)

Change your name

To change your name, all you need to do is this:

response = s.name("your_name")
print(response)

Change your highlights

To change your highlights, all you need to do is this:

response = s.highlights("your_highlights")
print(response)

Change your bot name

To change your bot name, all you need to do is this:

response = s.bot_name("your_bot_name")
print(response)

Change your bot greeting

To change your greeting, all you need to do is this:

response = s.greeting("greeting")
print(response)

Change your bot title

To change your title, all you need to do is this:

response = s.title("title")
print(response)

Change your bot visibility

To change your visibility, all you need to do is this:

response = s.title("visibility") #public - private - permanent private
print(response)

Change your bot persona

To change your persona, all you need to do is this:

response = s.persona("persona")
print(response)

Change your bot avatar

To change your avatar, all you need to do is this:

response = s.avatar_url("avatar_url")
print(response)

Change your bot openai_api_key_url

To change your title, all you need to do is this:

response = s.openai_api_key_url("openai_api_key_url")
print(response)

Change your bot openai_mode

To change your openai_mode, all you need to do is this:

response = s.openai_mode("openai_mode")
print(response)

SEND MESSAGES TO SPICY CHATS BOTS

To send messages, all you need to do is this:

response = s.send_message("your-message", "chat-id", "conv-id")
print(response)

To get chat-id open a bot from spicy chat and you can see the chat id in the link.

To get conv-id open a bot from spicy chat press f12, go to the network tab, press f5, send message to the bot, and now i believe you can see the chat thing click it, click payload, and now you can see the conv-id. copy and paste it. (if it is none press f5 do same things again)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spicy_chat_ai-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spicy_chat_ai-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file spicy_chat_ai-1.0.0.tar.gz.

File metadata

  • Download URL: spicy_chat_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for spicy_chat_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 049c28eb7950fb90e550c3e516919beb7e207ba3eaf297ee66e50288e5ecc944
MD5 193c60a544326bf1ef7b8ccfd9eee5dd
BLAKE2b-256 d01f6235b0ad318008b07a074a0416d4b77b86fcd1ae11548732a2d0d5bf22c7

See more details on using hashes here.

File details

Details for the file spicy_chat_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: spicy_chat_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for spicy_chat_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d06f8845d60c739ffd4a7e7fe0fca8dea1952c2e3b59970803e88f158a3761
MD5 11bf94640c96b6120f7dc8b3f7ba2a27
BLAKE2b-256 60577862458e7896427f740644da1225ac3bf38c03b192fc13d0f93f66473e4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page