This Discord.py bot connects to Character.ai through Playwright, allowing automation of interactions.
- Python 3.x
- Discord.py (v1.7.3 or higher)
- Playwright (v1.18.1 or higher)
- Clone the repository to your local machine.
- Copy code
pip install requirements.txt
playwright install
- Configure the bot by updating the bot.py file with your Discord bot token.
- Run the bot using python bot.py to start the Discord.py bot with Playwright integration.
- Invite your bot to your Discord server.
- Use the
!chat
command followed by a valid character_id to start a conversation with Character.ai. - The bot will prompt you to enter your first message to start the conversation.
- The bot will automatically send messages to Character.ai using Playwright and retrieve the responses.
- Use the
!stop
command to end the interaction. Please note that this is a basic usage guide, and you may need to customize the bot further according to your specific requirements.
If you would like to contribute to this project, feel free to submit pull requests or open issues for bug reports, feature requests, or improvements.
This project is licensed under the MIT License, which allows for free usage, modification, and distribution of the code. However, it's always good practice to provide proper attribution when using or referencing this project.