Code Monkey home page Code Monkey logo

d20-bot's Introduction

d20-bot

DiscordJS Dice Bot for Dungeons and Dragons

Commands

  • !ping: Pings bot
  • !roll (dice notation): Roll a dice with dnd dice notation.

Notation Examples

!roll d4 will roll a 4 sided dice 1 time.
!roll 2d6 will roll a 6 sided dice 2 times.
!roll 2d20 d6 d10 d20 will roll a 6 sided dice 1 time, a 10 sided dice 1 time, and a 20 sided dice 3 times.

Roll Examples

!roll d4 d12 2d4 will result in a d4 roll, a d12 roll, then a 2d4 roll. i.e. !roll d4 d12 2d4

d4: (d4 roll)
d12: (d12 roll)
2d4: (2d4 roll)

Note

!roll will only accept a dice side value of 4,6,8,10,12,20, or 100, and will only accept a dice quantity value of greater than or equal to 0

Installation

  1. Clone this repository
  2. Open a console in the d20-bot folder and run npm install
  3. Create a .env file inside the folder with TOKEN=(token) inside, replacing (token) your discord bot token.
  4. To start, run node d20-bot.js or npm test

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.