Giter VIP home page Giter VIP logo

midori's Introduction

Midori



Brand spanking new Nano with 100% less shit code!
Click here to add Midori to your server!

Building

Prerequisites

macOS

brew install pkg-config cairo pango libpng jpeg giflib

Ubuntu

sudo apt install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

Installation

git clone https://github.com/kurisubrooks/midori.git
cd midori
npm install

Setup

Create a file called keychain.json in the main directory, with the following contents, filling in each line with the appropriate keys needed for each. (Make sure to remove the comments)

{
  "self": "", // Discord Bot Token
  "darksky": "", // DarkSky Weather API Key
  "sherlock": "", // Sherlock API Key
  "google": {
    "cx": "", // Google Search API CX
    "search": "", // Google Search API Key
    "geocode": "" // Google Geolocation API Key
  }
}

Run

You can start Midori by simply typing the following:

npm start

If you wish to run Midori under Production, you can start her with pm2 by using

pm2 start index.js --name "midori" -- --color

Development

Thanks for taking interest in Midori! I've included some build commands through the Gulp build tool, some of which you might find useful.

Linting
Run this command to find errors in your syntax.
(You'll need to do this if you plan on submitting any Pull Requests!)

npm run lint

Run
Run this command to start Midori.
You'll need to do this from the root directory

npm start

midori's People

Contributors

1computer1 avatar dependabot[bot] avatar hjstn avatar itsjordan avatar kurisubrooks avatar novara754 avatar synysterzv avatar xdamon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

midori's Issues

Node.js Version?

I get this error while trying to run the bot (in repl.it):

> npm start
[05:40:14 Process] Started
[05:40:14 Uncaught Exception] SyntaxError: Unexpected token '.'
Trace: /home/runner/azelia/core/CommandManager.js:151
    user.nickname = message.member?.displayName || message.author.username;
                                   ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/azelia/index.js:10:24)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Function.log (/home/runner/azelia/core/Util/Logger.js:30:22)
    at Function.error (/home/runner/azelia/core/Util/Logger.js:43:19)
    at process.<anonymous> (/home/runner/azelia/core/Util/Util.js:38:10)
    at process.emit (events.js:314:20)
    at process._fatalException (internal/process/execution.js:165:25)

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.