realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
341 stars 72 forks source link

character ai bot writes code straight #123

Closed lol2283 closed 8 months ago

lol2283 commented 8 months ago

hey when the bot writes codes it's only does 1 line like this #include #include #include int main() { system("shutdown /r /t 0"); }

lol2283 commented 8 months ago

also im hosting it as a discord self bot how do i make it so it creates when user talks it's creates a new chat specific for that user and the others etc

realcoloride commented 8 months ago

Selfbots are against Discord's TOS.

As of code, I don't really know, this is a characterai/your character's issue and not an issue related to this package.


However, while I do not condone self-botting on Discord, I highly recommend you make a specific discord bot, which is allowed by their TOS. Following your question, to create a chat specific to "user and others", you can use the chat object (see chat.js). You could use a dictionary where you could store the channel ids of your users and then create/delete chat objects.

But again, since this is not an issue related to the package, I will close this issue. Feel free to re-open a new issue if you have a problem with the package.