Giter Club home page Giter Club logo

ar50's Introduction

AR50

StackShare

Introduction

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.

Add it to your server

[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)

Commands

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, and 50!-sqrt - calculates the square and square root of a number, respectively

  • 50!-sq_area, 50!-rect_area, and 50!-circle_area - calculates the area of a square, rectangle and a circle, respectively

  • 50!-sq_perimeter, 50!-rect_perimeter, and 50!-circle_perimeter - calculates the perimeter of a square, rectangle and a circle, respectively

  • 50!-add, 50!-multiply, 50!-difference, 50!-subtract, and 50!-divide


The v1.0

  • Stock Figures
  • Weather
  • Basic Mathematical functions

Run it for yourself

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.


For Contributors

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]


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.