GithubHelp home page GithubHelp logo

maubot-characterai's Introduction

Hello world!

๐Ÿ‘ค About me

I'm a french developper specializing in networking and APIs.
I love contributing to open-source projects, as well as making my own!
I also do 3D modeling and 3D printing in my free time, and i love reading mangas and VNs.
I'm also really fascinated by steganography and cryptography.

โš™๏ธ Programming langages, from most to least used

  • ๐Ÿ Python
  • ๐Ÿ› ๏ธ C/C++ (with Qt ๐Ÿ–ผ๏ธ)
  • ๐Ÿฆ€ Rust
  • ๐ŸŒ JavaScript
  • ๐Ÿ˜ PHP

๐Ÿ“ฉ Contact

Matrix: @matthieu.laurent:matrix.org

maubot-characterai's People

Contributors

matthieu-laurent39 avatar

Stargazers

 avatar

Watchers

 avatar

maubot-characterai's Issues

Add help command

It should display the current configuration, as well as how to use the bot

Send message logs at the end of the chat

When creating a new chat, it would be nice if the whole previous chat could be archived into a zip file and sent to the GC.
This would be optional, and off by default.

ModuleNotFoundError: No module named 'characterai'

Error inside containerised maubot (docker)

[2023-12-18 11:17:43,711] [[email protected]] Error in handler
Traceback (most recent call last):
  File "/opt/maubot/maubot/loader/zip.py", line 216, in _load
    importer.load_module(module)
  File "/opt/maubot/maubot/lib/zipimport.py", line 280, in load_module
    exec(code, mod.__dict__)
  File "/data/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/__init__.py", line 1, in <module>
    from .cai import CAIBot
  File "/data/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/cai.py", line 13, in <module>
    from characterai import PyAsyncCAI
ModuleNotFoundError: No module named 'characterai'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/maubot/maubot/management/api/middleware.py", line 49, in error
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/maubot/maubot/management/api/instance.py", line 85, in update_instance
    return await _update_instance(instance, data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/maubot/maubot/management/api/instance.py", line 69, in _update_instance
    await instance.update_started(data.get("started"))
  File "/opt/maubot/maubot/instance.py", line 489, in update_started
    await (self.start() if started else self.stop())
  File "/opt/maubot/maubot/instance.py", line 362, in start
    cls = await self.loader.load()
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/maubot/maubot/loader/zip.py", line 201, in load
    return self._load(reset_cache)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/maubot/maubot/loader/zip.py", line 220, in _load
    raise MaubotZipLoadError(f"Failed to load module {module}")
maubot.loader.zip.MaubotZipLoadError: Failed to load module cai

Make typing context manager reentrant

Currently, if the bot replies to 2 different messages in the same channel, it will clear the typing indicator when it replies to the first message.
Making the typing ctx manager could fix the issue.

One potential issue is if sending a message clears the typing indicator. In that case, not much we can do, except maybe use another lock, or move the current lock to completely encapsulate the typing indicator.

Error while handing message... 'raw_content'

Sometimes, this is replied instead of the actual response.
My guess is that it's CAI censoring the answer with their filter, and thus there's no content to display.

This should get handled and properly displayed, instead of this confusing error

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.