This Bluzelle Discord Bot has 7 commands which retrieves information from bluzelle mainnet, bluzelle testnet and coingecko servers.
challenge
- 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.
- In order to register a bot on the Discord platform, use the Discord application dashboard. Here developers can create Discord applications including Discord bots.
- Click New Application. Discord will ask you to enter a name for your new application. Then click Create to create the application.
- 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.
- Click the Add Bot button to add a bot to the application
- 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.
- navigate to the OAuth2 tab of the application dashboard. To create an invite, scroll down and select bot under scopes.
- 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).
- 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.
- Ensure that you have all the tickboxes ticked, this will grant the bot permissions. Then click Authorize.
- You’ll now have the Discord bot on the members list in the server you added the bot to under offline.
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
npm install
node index.js
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
Go to Test with Jest
Satya Snehith
Email - [email protected]
GitHub - https://github.com/SatyaSnehith
Mashrukh
Email - [email protected]
GitHub - https://github.com/mushroomgenie
Distributed under the MIT License.