معرفی شرکت ها


chatwizard-0.2.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Your DiscordBot for a safer environment
ویژگی مقدار
سیستم عامل -
نام فایل chatwizard-0.2.0
نام chatwizard
نسخه کتابخانه 0.2.0
نگهدارنده ['Ulas Onat Alakent']
ایمیل نگهدارنده ['ulas.alakent@columbia.edu']
نویسنده Ulas Onat Alakent
ایمیل نویسنده Ulas Onat Alakent <ulas.alakent@columbia.edu>
آدرس صفحه اصلی https://github.com/ulasonat/ChatWizard
آدرس اینترنتی https://pypi.org/project/chatwizard/
مجوز MIT License Copyright (c) 2023 Ulas Onat Alakent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# ChatWizard Discord bot to encourage positiveness within a server by analyzing and scoring each member's behavior. ![](https://img.shields.io/github/license/ulasonat/prime-video-plus?color=blue&label=License) ![](https://img.shields.io/github/issues/ulasonat/ChatWizard) [![Build Status](https://github.com/ulasonat/ChatWizard/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/ulasonat/ChatWizard/actions/workflows/build.yml) [![codecov](https://codecov.io/gh/ulasonat/ChatWizard/branch/main/graph/badge.svg?token=G2AE2OWNO3)](https://codecov.io/gh/ulasonat/ChatWizard) [![](https://img.shields.io/pypi/v/chatwizard?color=blue)](https://pypi.org/project/chatwizard/) [![Documentation Status](https://readthedocs.org/projects/chatwizard/badge/?version=doc_website)](https://chatwizard.readthedocs.io/en/doc_website/?badge=doc_website) ## Overview ChatWizard is a Discord bot that encourages positivity within a server by analyzing and scoring each member's behavior. It uses OpenAI's GPT-3.5-turbo to assess members based on factors such as helpfulness, language use, friendliness, and humor. With ChatWizard, you can create a more welcoming, engaging, and supportive environment for everyone in your server. ## Features - Analyzes and scores server members based on grammar, friendliness, and humor values of their messages. - Encourages and rewards positive contributions to the server. - Provides a score breakdown so members can see how they're performing in each category. - Logs all messages sent, making it easy to review member behavior. ## Demo <img src="demo.png" alt="Demo Image" style="width:50%;height:50%;"> ## Dependencies 1. Python 3.6 or higher 2. `discord.py` module (v1.7.3 or higher) 3. `openai` module (v0.11.1 or higher) 4. OpenAI API key (v4) 5. A Discord user account and server ## Installation 1. Clone this repository: ```bash git clone https://github.com/ulasonat/ChatWizard.git ``` 2. Install the required third-party packages: ```bash pip install discord pip install openai ``` 3. Set up the following environment variables, replacing `your_discord_api_key` and `your_openai_api_key` with your actual API keys: For bash: ```bash export DISCORD_API_KEY="your_discord_api_key" export OPENAI_API_KEY="your_openai_api_key" ``` For Windows cmd: ```cmd set DISCORD_API_KEY="your_discord_api_key" set OPENAI_API_KEY="your_openai_api_key" ``` 4. Invite the bot to your server through Discord Developer Portal. 5. Usage To run the application, execute the following command in your terminal/cmd prompt: ``` bash python main.py <openai_api_key> <discord_api_key> ``` Alternatively, you can import the library and call the main.run function by passing the Discord API key, OpenAI API key as arguments. Then, run the bot using the `run` method. ```python run(discord_api_key, openai_api_key) ``` Moreover, you can have instances of either OpenAIHandler or DiscordBot classes, and use the functions available. If you want to use our library to get a humor score for the sentence, you can do the following: ```python from openai_handler import OpenAIHandler openai_handler = OpenAIHandler( api_key=open_ai_api_key, grammar_prompt_path=grammar_prompt_path, friendliness_prompt_path=friendliness_prompt_path, humor_prompt_path=humor_prompt_path, ) worst_joke_ever = 'Why did the tomato turn red? Because it saw the salad dressing!' humor_score = openai_handler.get_humor_score(worst_joke_ever) ``` More examples are included in our project's website. ## Bot Commands - To get help: `!help` - To view your scores: `!me` - To reset your scores: `!reset` After sending a message, ChatWizard will reply with an embed showing the score breakdown for that message. ## Contributing Contributions are welcome! Please feel free to submit a pull request for any bug fixes or new features you would like to add. Check the ```CONTRIBUTING.md``` for details!


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl chatwizard-0.2.0:

    pip install chatwizard-0.2.0.whl


نصب پکیج tar.gz chatwizard-0.2.0:

    pip install chatwizard-0.2.0.tar.gz