AR50 is a discord bot built using Discord.JS, capable of doing a lot of miscellaneous tasks, like showing the current weather, getting stock details, and some mathematical functions.
[NOTE: the bot won't be up 24/7]
Invite the bot to your server
(You need to have the Manage Server
permission for the server you want to add the bot to)
50!-
is the command prefix for the bot
The list of commands are as follows:
50!-help
- shows all of the available commands.
50!-weather
- gets the weather details of a location using the Weather API and displays the current weather condition, the current temperature, the temperature it feels like, and a picture of the weather condition.
50!-stock
- gets the stock details of a publically traded entity, using the Alpha Vantage API, and shows the current stock price, along with the net change and net change percentage.
-
50!-factorial
- calculates the factorial of a number -
50!-power
- calculates the value of raising a number to the power of a second number -
50!-square
, and50!-sqrt
- calculates the square and square root of a number, respectively -
50!-sq_area
,50!-rect_area
, and50!-circle_area
- calculates the area of a square, rectangle and a circle, respectively -
50!-sq_perimeter
,50!-rect_perimeter
, and50!-circle_perimeter
- calculates the perimeter of a square, rectangle and a circle, respectively -
50!-add
,50!-multiply
,50!-difference
,50!-subtract
, and50!-divide
- Stock Figures
- Weather
- Basic Mathematical functions
Prerequisites: Node.JS (and npm), your bot's token, an api key from Alpha Vantage, and an api key from Weather API.
Fork the repository, and then clone it to your local device.
In that directory, install Discord.JS with the command npm install discord.js
.
And then, add a file called config.json
in the same directory, which should contain the following code:
{
"prefix": "50!-",
"token": "<the bot token>",
"stockApiKey": "<the api key from Alpha Vantage>",
"weatherApiKey": "<the api key from Weather API>"
}
(You can change the prefix, if you wish)
For running the program, use the command node index.js
in the same directory.
Note: The program is licensed under the MIT open source license.
If you wish to contribute to the project, you can create an issue and also send pull requests.
For any suggestions, please contact [email protected]