Chai made a big change to their structure and there's no way to run this bot as of May 29, 2023. They now have an official API and a Python library to interact with their platform, find more info here
Discord fan-made bot created to interact with chai.ml chatbots
-
Chai developer key, developer uid & bot id
Go to https://chai.ml/, create a bot if you don't have one then click "Publish"
⚠ You are not limited to your own chatbots! You can use any that you like
git clone https://github.com/ploxxxy/chai-js
cd chai-js
npm install
After setting up the bot, you can run it using npm start
Go to .env
file and fill out the values, for example:
DISCORD_BOT_TOKEN=OTYf4MTYyNjKuRw4ODM4Ng0.Yma1ug.mAnGoDOg-ZvWYfmgz4NWhzj-IIc
DISCORD_CHANNEL_ID=968166994123816981
CHAI_BOT_ID=_bot_799cee61-370f-4b07-aae5-5ada4eb4f844
CHAI_DEV_KEY=v9Pl0xXyocdthJslmL1K3sQ5nyusXgFM1s4t0YfJg6j5lPwh4tT0d0ztxJuHGCab8-6wNeBn1DFRYEgN0sbu
CHAI_DEV_UID=i0iPl0XxYtnz1Sakm0guC0OL6g2
If you have encountered an issue, you can
- make a pull request
- create an issue
- dm me in discord: ploxxy#6090