A multipurpose Discord bot that offers a variety of utility tools: translator, dictionary, currency converter, view user info, and timer.
❗ Currently, translation feature are unavailable in the hosted version. Consider using the local version with your own API key configured in the .env file.
https://discord.com/oauth2/authorize?client_id=978649404816916521&permissions=8&scope=bot
- Prefix: To use any of the bot's commands, type
e!
in front of the command. - Help: To get the help menu, type
e!help
. - Language Help: To get a list of supported languages for the translator feature, type
e!helpts
. - Currency Help: To get a list of supported currencies for the currency converter feature, type
e!helpct
. - Time Help: To get a list of supported time zones for the time feature, type
e!helptime
.
- Translator: To translate a message to a specific language, type
e!ts targetLanguage message
. The bot will automatically detect the source language. - Dictionary: To get the definition of an English word, type
e!d word
. - Currency Converter: To convert one currency to another, type
e!e baseCurrency targetCurrency
. - Time: To get the current time from a specific time zone, type
e!time timeZoneName
ore!time timeZoneCode
. - Timer: To set a timer, type
e!timer minutes
. The bot will send a message when the timer is up. - User Info: To get information about a specific user, type
e!info @user
. - About: To get information about the bot and its developer, type
e!about
.
- Java Development Kit (JDK) 18 (Do not use later version until Discloud supports it)
- Maven 3.8.5 or later
- Clone the repository: Open a terminal and clone the IAmNotARobot repository using the following command:
git clone https://github.com/tansweeyang/IAmNotARobot.git
- Install dependencies: Navigate to the cloned directory and run the following command to download all necessary libraries:
mvn clean install
- Follow the instructions from the websites to get your unique API keys:
- Discord Jda API: https://discord.com/developers/docs/intro
- Currency Converter API: https://currencyapi.com/
- Configure environment variables: Create a
.env
file in the root directory and add the following lines, replacing the placeholders with your actual values:DISCORD_JDA_KEY=YourTokenHere CURRENCY_TRANSLATOR_API_KEY=YourTokenHere GOOGLE_SCRIPT_TRANSLATOR_DEPLOYMENT_ID=YourTokenHere
- Package the application: Generate a JAR file:
mvn clean package
- Run the application: Execute the main class with the following command:
java -cp bot.jar com.eislyn.IAmNotARobot.app.IAmNotARobot-version
- Change the release version in pom.xml.
<version>Released Version</version>
- Generate zip folder to deploy:
- Run the following command to generate an application zip file ready to be deployed.
mvn clean package
- A zipped application folder
bot.zip
will be created in your desktop. The zip folder will contain the following three files:IAmNotARobot-Version.jar
,.env
, anddiscloud.config
- Run the following command to generate an application zip file ready to be deployed.
- Join the Discloud Server:
- Upload and Start:
- In the Discloud server, type the following command in the commands channel and follow the prompts to upload your zipped
bot.zip
file..upc
- Once uploaded, type the following command to launch the bot!
.start
- If you face any issue with deployment using Discloud, feel free to reach out to Discloud's highly active community or moderators in the server.
- In the Discloud server, type the following command in the commands channel and follow the prompts to upload your zipped
If you would like to contribute to this project, please fork the repository and submit a pull request.
If you have any questions or issues, please feel free to contact me or open an issue in this repository.
This project is licensed under the MIT License - see the LICENSE file for details.