GithubHelp home page GithubHelp logo

kronung-bot's Introduction

kronung-bot

Kronung in his glory

(orignally pap-assistance-discord-bot)

Description

A discord bot that assists in the daily struggles of dungeons masters and players around the world

Still figuring out how git works, so bear with me.

This is just a pure implemenation of the nick feature of the Discord bot. If anyone is interested in having a dice rolling feature, I'd also add that to this bot. (Example: )

Installation

  • Create a server, for example on aws as described in this video.
  • Install node.js on the server. Install instructions for differente operating systems can be found on the official node.js website.
  • Clone this repository on the server.
  • Then you need to initialize the directory with these commands:
    > npm init
    > npm install discord.js
    
  • Then create a new application (aka bot) on the discord application developer portal.
  • Under the 'bot' menu you should find a 'token' - it's normally hidden and should always stay a secret. You'll need that token later.
  • After you created the application on the discord developer website, invite it to your server by following this guide.
  • In the next step you'll need the serverid, you find that id by right clicking the server icon in discord, there should be an option to 'Copy ID'.
  • Configure the bot by copying the file config.example.json in the config directory to config.json also in the config directory and insert the secret token for the bot you created and the id of the server where you invited the bot to.
  • After that you just need to start the application you just configured. On windows use the startserver.bat, on linux just run
    > node .
    
  • Your bot should now appear as online in your server.

This bot is currently intended to be used by people who have a basic understanding of how to setup a discord bot and handle node.js.

Features

Commands:

!nick register "Your Nick" "Channel Name" - Registeres your nickname
!nick delete "Your Nick" - Deletes your nick

!d20 <Bonus> | e.g. !d20 +7 Perception
!d <Dice Notation>  | e.g. !d 1d4+5

Capability Clarification

The bot currently is not able to change the nickname of the server owner*. This is due to limitations provided by the permission system of Discord, as the server owner will always have the highest permission. This can be circumvented by transfering ownership of the Discord Server to another secondary account, so the server owner can have his regular account be manipulated by the bot. Never transfer ownership of the Discord Server to the bot, as you are currently unable to retrieve it.

*Server Owner means the person who originally created the server.

kronung-bot's People

Contributors

jeffkamo avatar liliththedeveloper avatar nilskrause avatar rikerturos avatar ttury 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.