Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itachi1621/rpg_charachter_creator_discord_bot
Discord bot that allows you to create RPG character descriptions using OpenAI's natural language processing capabilities. You can generate unique character backgrounds, traits, and more with just a simple command.
https://github.com/itachi1621/rpg_charachter_creator_discord_bot
ai aiohttp chatgpt chatgpt-api discord discord-bot discord-py discordbot nlp openai openai-api python python-script rpg rpg-tool
Last synced: 10 days ago
JSON representation
Discord bot that allows you to create RPG character descriptions using OpenAI's natural language processing capabilities. You can generate unique character backgrounds, traits, and more with just a simple command.
- Host: GitHub
- URL: https://github.com/itachi1621/rpg_charachter_creator_discord_bot
- Owner: itachi1621
- License: mit
- Created: 2024-05-05T05:13:21.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T03:33:38.000Z (8 months ago)
- Last Synced: 2024-05-09T04:34:03.371Z (8 months ago)
- Topics: ai, aiohttp, chatgpt, chatgpt-api, discord, discord-bot, discord-py, discordbot, nlp, openai, openai-api, python, python-script, rpg, rpg-tool
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RPG Character Maker
This Discord bot allows you to create RPG character descriptions using OpenAI's natural language processing capabilities. You can generate unique character backgrounds, traits, and more with just a simple command.
## How to Use
To interact with the RPG Character Maker bot, use the following commands in your Discord server:- /version: Get information about the bot's version.
- /create_character: Create a character by providing a character description, like Greg the bowler from Taiwan.
- /create_item : Creates an item with stats and a description etc like sword of light, potion of healing
- /helpme: Get help on how to use the bot.## Setup
Follow these steps to set up the Discord bot:1. Create a Discord Bot
Go to the Discord Developer Portal.
Click on New Application.
Give your application a name (e.g., RPG Character Maker).
Go to the Bot tab on the left sidebar and click Add Bot.
Click on Copy Token under the bot username to get your DISCORD_BOT_TOKEN.
2. Enable Intents
Still in the Developer Portal, navigate to the Bot tab.
Under Privileged Gateway Intents, enable the following intents:
- Message Intent
- Server Members Intent
3. Set Environment Variables
Create a .env file in the project directory with the following variables:
```bash
OPENAI_API_KEY = ""
DISCORD_BOT_TOKEN=""
OPEN_AI_CONFIG_FILE_LOC=".../configs/ USE FULL PATH to the config folder not relative e.g C:/USers/SAM/rpgbot/configs etc.. or /home/sam/rpgbot/configs...."
BOTNAME = "RPG Charahcter Maker"
VERSION = "1.0.4"
EMBED_COLOR = "0x0000FF"
```
4. Install Dependencies
Install the required Python packages using pip:```bash
pip install -r requirements.txt
```
5. Run the Bot
Start the bot by running the following command in your terminal:```bash
python RPF_Bot.py
```
## Additional Notes
The bot uses OpenAI's GPT-3 model to generate character descriptions based on the provided input.
Make sure to provide a clear and concise character description to get the best results.
Feel free to contribute to this project and customize the bot according to your needs. Happy character creating! 🎲