Git Product home page Git Product logo

discordbluzellebot's Introduction

DiscordBluzelleBot

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Test
  5. Contact
  6. License

About The Project

This Bluzelle Discord Bot has 7 commands which retrieves information from bluzelle mainnet, bluzelle testnet and coingecko servers.

challenge

Built With

Getting Started

Prerequisites

  • Node.js installed on your development machine. To install this on macOS or Ubuntu 18.04, follow the steps from this link.
  • Any text editor of your choice.
  • A free Discord account with a verified email account and a free Discord server you will use to test your Discord bot.

Installation

step 1. Setting Up a Discord Bot and get the bot’s token

  • In order to register a bot on the Discord platform, use the Discord application dashboard. Here developers can create Discord applications including Discord bots.

11

  • Click New Application. Discord will ask you to enter a name for your new application. Then click Create to create the application.

12

  • Now open up your application dashboard. To add a bot to the application, navigate to the Bot tab on the navigation bar to the left.

13

  • Click the Add Bot button to add a bot to the application

14

  • Click the Yes, do it! button when it prompts you for confirmation. You will then be on a dashboard containing details of your bot’s name, authentication token, and profile picture.

15

  • navigate to the OAuth2 tab of the application dashboard. To create an invite, scroll down and select bot under scopes.

16

  • You must also set permissions to control what actions your bot can perform in guilds. select the following permissions. Copy the link with the Copy button (under scopes).

17

  • Next, add the bot to a server. Follow the invite link you just created. You can add the bot to any server you own, or have administrator permissions in, from the drop-down menu. Now click Continue.

18

  • Ensure that you have all the tickboxes ticked, this will grant the bot permissions. Then click Authorize.

110

  • You’ll now have the Discord bot on the members list in the server you added the bot to under offline.

19

Step 3. Clone the repo and rename

git clone https://github.com/mushroomgenie/DiscordBluzelleBot.git

or download it directly

  • Rename '.env.example' file to '.env'.
  • You also need to copy the bot’s authentication token by clicking Click to Reveal Token and copying the token that appears. and paste it in the .env file 21 22

Step 4. Install all the required dependencies.

npm install

Step 5. Finally execute the node application.

node index.js

Usage

We use . as prefix for all commands.
Use .help command for more information.

Accepted commands in the Bluzelle Bot

  • Current price: .price [currency]
    Example: .price inr, .price eur

  • About Market Cap: .market [currency]
    Example: .market inr, .market eur

  • About Active Validators: .validators [testnet | mainnet]
    Example: .validators t, .validators main

  • About Blocks: .blocks [testnet | mainnet]
    Example: .blocks t, .blocks main

  • Balance of Account(use Direct message): .balance [address]
    Example: .balance your_bluzelle_address

  • Mint testnet Account: .mint
    Example: .mint

Accepted currencies for price and market commands
aed, ars, aud, bch, bdt, bhd, bmd, bnb, brl, btc, cad, chf, clp, cny, czk, dkk, dot, eos, eth, eur, gbp, hkd, huf, idr, ils, inr, jpy, krw, kwd, lkr, ltc, mmk, mxn, myr, ngn, nok, nzd, php, pkr, pln, rub, sar, sek, sgd, thb, try, twd, uah, usd, vef, vnd, xag, xau, xdr, xlm, xrp, yfi, zar, bits, link, sats


screenshots

32

Test

Go to Test with Jest

Contact

Satya Snehith
Email - [email protected]
GitHub - https://github.com/SatyaSnehith

Mashrukh
Email - [email protected]
GitHub - https://github.com/mushroomgenie

License

Distributed under the MIT License.

discordbluzellebot's People

Contributors

satyasnehith avatar mushroomgenie avatar

Watchers

James Cloos avatar  avatar  avatar

discordbluzellebot's Issues

Permissioning is too open

We cannot give the bot admin. It is too unsafe. Please let us know what exact permissions to give the bot to test and eventually deploy it.

Bot started on CLI but can't activate in Discord

I switched over to Ubuntu and got the bot to start on the CLI.

It appears the bot "user" on Discord is online (green dot).

But I can't do anything with the bot. As per your documentation, I tried the "." to activate it. Nothing happens. I tried "/" and I only see the other bots.

I will need to move onto trying the other submissions now until you clarify. Thanks.

Error when running "node index.js"

`
Vega:DiscordBluzelleBot loquitus$ node index.js
file:///Users/loquitus/src/ff/DiscordBluzelleBot/index.js:11
const sdk = await bluzelle({
^^^^^

SyntaxError: Unexpected reserved word
at Loader.moduleStrategy (internal/modules/esm/translators.js:122:18)
at async link (internal/modules/esm/module_job.js:42:21)
`

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.