Git Product home page Git Product logo

discord-bot's Introduction


HGVMP
HGVMP Discord Bot

A community bot built on top of Discord.js.

How To UseCreditsStyle GuideLicense

screenshot

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/hgvmp/discord-bot

# Go into the repository
$ cd discord-bot

# Install dependencies
$ npm install

# Run the app
$ npm start

Note: If you're using Linux Bash for Windows, see this guide or use node from the command prompt.

Credits

This software uses code from several open source packages.

Style Guide

The HGVMP developers follow the AirBnB style guide for every project they create, including the Discord bot. Style guides provide three benefits that make development more efficient:

  • Code that's easier to read
  • Clear guidelines when writing code
  • Predictable file and variable names

Consistent style choices greatly benefit readability. For example, they mean that indentation reliably communicates the structure of your code. Variable naming conventions allow you to immediately see that LoginDialog is a class, loginDialog is a class instance and LOGIN_DIALOG is a constant.

Credits to codereadability and their amazing read on why style guides are handy.

 

Install ESLint & AirBnB

# Install ESLint
$ npm install eslint --save-dev

# Install AirBnB
$ npm install eslint-config-airbnb --save-dev

# Install a peerdeps
$ npm install -g install-peerdeps

# Install peer dependencies
$ install-peerdeps eslint-config-airbnb --dev

 

ESLint Configuration

{
	"extends": [
		"airbnb"
	],
	"rules": {
		"linebreak-style": "off"
	}
}

 

Visual Studio Code Configuration

{
  "editor.tabSize": 2,
  "editor.detectIndentation": true,
  "[javascript]": {
    "editor.tabSize": 2
  },
  "[json]": {
    "editor.tabSize": 2
  },
  "[php]": {
    "editor.tabSize": 4
  },

  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },

  "editor.wordWrap": "wordWrapColumn",
  "editor.wordWrapColumn": 100,
  "editor.rulers": [
    100
  ],

  "eslint.enable": true,

  "eslint.autoFixOnSave": true
}

License

MIT


hgvmp.com  ·  GitHub @hgvmp  ·  Discord @hgvmp

discord-bot's People

Contributors

benhandsley avatar

Watchers

James Cloos avatar husly moon 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.