GithubHelp home page GithubHelp logo

cairnswm / discord-bot-for-dnd Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 497 KB

Discord bot for D&D. Bot will be able manage campaigns (very high level) characters and roll dice. The idea is to allow a game to be run in discord while the main data for the campaign to be stored in a database.

HTML 46.85% JavaScript 47.28% CSS 5.87%

discord-bot-for-dnd's Introduction

Discord bot for Dungeons and dragons

Apps

All apps are run from the same code base. React is served through the express application. I have deployed the application on cPanel as a node app.

Discord Bot Rest API React Front end

Discord Bot

Characters and Dungeon Master can interact with the Bot

Rest API

Used to maange actions that cannot be done easily through the Discord system. For example displaying comprehensive character sheets to players. Enabling the Dungeon Master to create Campaigns and Characters.

React Front End

Supplies a user interface to access data. Players can use the system to view and manage their character sheets. Dungeon master can access to all character sheets

Features

Die Rolling

command !roll or !r

In discord type !r

e.g. !r 3d20 withh roll and total 3 20 sided die

simple additions and subtractiosn will work !r d20+2

The ability to drop lowest die is possible !r 2d20-L

TODO: allow custom type die rolls !r attack advantage !r attack disadvantage !r strength !r perception

join

Command !join or !j

use the join command to join a campaing. Only once in a campaign can you claim a character

!join

The DM will ggive you the campaign name

Character

Command !character or !char or !ch or !c

The structure of the command is

Action claim

action: claim

!character claim

This will allocate the character to you and other commands will be actions as for this character - eg display will display this characters name

Action sheet

action: sheet or sh

!character sheet

Will display a short summary in the current chanel of your character, basic information sucg as name, race, gender, class, level will be displayed

Action expanded

action exampanded or ex

!character expanded

Will display in a private chat window with the Bot your full character sheet

Action link

action: link

!character link

Will post a link to your characer sheet in the private message channel, use this to open and view your character in a browser window

Action release

action: release

@character release

This will remove the relationship between yourself and the charater, this will then allow somone else to claim the character instead

Dungeon Master

!dm

Campaign Create

!dm campaign create

Will create a new campaign with Name in the system. Will return (in private chat) a link to the campaign page.

Campaign Claim

Campaign Release

More to Come

  • Create NPC
  • Create Town/City
  • Get Names
  • Character cast spells

discord-bot-for-dnd's People

Contributors

cairnswm avatar

Watchers

 avatar  avatar

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.