Integral Type Calculator is a 77B1 Discord bot designed to calculate integral type of relationships between Socionics types. This bot helps users explore and understand the dynamics of personality relationships and interactions within the framework.
Before you begin, ensure you have met the following requirements:
- You have a Discord account.
- You have a Discord server where you have permission to add bots.
- You have Node.js and npm installed on your local machine.
-
Clone the Repository
git clone https://github.com/jastka4/bot-integral-type-calculator.git cd bot-integral-type-calculator
-
Install Dependencies
npm install
-
Setup Environment Variables
Create an
.env
file in the root directory of the project and add your Discord bot token:DISCORD_TOKEN=your-discord-bot-token DISCORD_CLIENT_ID=your-client-id
-
Run the Bot
npm start
-
Invite the Bot to Your Server
Generate an invite link for your bot using the Discord Developer Portal and invite the bot to your server.
-
Install Commands
node src/deploy-commands.js
-
Use Commands
Once the bot is in your server, use the commands listed below to interact with it.
Command | Description | Examples |
---|---|---|
/help |
Displays the list of available commands. | /help |
/integral chart |
Prints a chart of intertype relationships. | /integral chart |
/integral calculate [type1] [type2] ... [typeX] |
Calculates the integral type of the provided Socionics types. | /integral calculate 'types: LSI EIE' /integral calculate 'types: SEI LIE SEE' |
/integral combinations get 'target: [type]' |
Finds all proper subsets of types that combine into the specified target integral type. | /integral combinations get 'target: LIE' |
/integral combinations subset 'types: [type1] [type2] ... [typeX]' 'target: [type]' |
Finds all proper subsets of the provided types that combine into the specified target integral type. | /integral combinations subset 'types: LII LII IEI SLE LIE ILE' 'target: ILE' |
Contributions are welcome! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request to the original repository.
If you have any questions or suggestions, feel free to open an issue or reach out to me.