Giter VIP home page Giter VIP logo

cai-bot-discordpy's Introduction

Setup

after opening terminal in project directory:

  1. python -m pip install -r requirements.txt
  2. add your c.ai token and discord bot token in bot.py and prefix if required. (by default prefix is !)
  3. Uncomment the jishaku line if you have jishaku installed and wants to load it for debugging.
  4. modify/remove/add c.ai characters in the file models/characters.py. Follow the existing format. You can get avatar urls from your browser's devtools.
  5. run the file bot.py
  6. run <prefix>sync in any channel where bot can see your message to sync the commands.

How to use

The bot runs on the concept of "Rooms". Do not confuse this with the rooms on c.ai. To chat with a character, user must create a room with them. They may also invite other users to the room, or chat alone. All commands are slash commands and are self-explanatory. You can only have one room at a time.

Limitations

Currently, we do not store any chat ids in database. So user's chat ids are lost after:

  • they disband their room using /room disband slash command.
  • the bot shuts down.

You can easily export/import rooms data to/from dictionaries.

cai-bot-discordpy's People

Contributors

adigro avatar

Forkers

l0n3-rang3r

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.