Code Monkey home page Code Monkey logo

nimiq-tip-bot's Introduction

free-nim-bot

How to add to your server

You can install my hosted version of this software. However, only admins can add bots to servers. @free-nim-bot will not have admin rights, though. You can try it on an example server, too.

Commands

All commands are case-insensitive.

!tip nimiq address [tip amount]

Sends NIM, on chain, to that address. If you don't specify a tip amount, it defaults to 0.2 NIM.

!tip @discord_username [tip amount]

Sends NIM to that user’s tip balance, off-chain. If you don't specify a tip amount, it defaults to 0.2 NIM.

!balance

Shows you your tip balance

!withdraw nimiq address

Sends your entire tip balance to that address, on-chain.

!deposit

Gives you instructions on how to deposit.

!github

Gives you a link to the github.

You can send the commands by DMing @nim-tip-bot, or in any Discord server that has the bot on it.

How to make a self-hosted installation

  1. Install the Nimiq compiled binary, on your Ubuntu/Debian system.
  2. Clone this repo.
  3. Run npm install.
  4. Make a Nimiq private key, and put it in privateKey.js. It is recommended that you use a different address then your usual address for this tipbot.
  5. In privateKey.js, put module.exports = "your twenty four words";
  6. Give a few NIM to your new address.
  7. Follow this guide to get a Discord token. Put your secret in discordToken.js, like:
{
  "token": "put your token here"
}
  1. Create db.json. This will store all of the tipbot data.
  2. Copy your discord user ID, like so (in any Discord channel): Type in @yourusername, and take the numbers.
  3. Put this in db.json:
{
  "userBalances": {
    "YOUR USER ID": 99999999999999
  },
  "blacklist": []
}
  1. In the Discord dev console, get your app's ID: Copy what's after "Client ID:"
  2. Go to https://discordapp.com/oauth2/authorize?client_id=YOUR APP ID&scope=bot
  3. You can now add your bot to a server.

nimiq-tip-bot's People

Contributors

syvb avatar slightlyskepticalpotat avatar

Stargazers

The Verse avatar  avatar Francis avatar Sander avatar sOm2y avatar Christopher Malau avatar  avatar noone avatar

Watchers

James Cloos avatar  avatar  avatar Francis avatar

nimiq-tip-bot's Issues

New Commands

!github
Link to github
!price
Nimiq price
!rain x
Splits x nim among last active members
!random x
Gives x nim to random active person
!donate x
Donate to devs for hosting
!deposit
Dm you with address

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.