Giter Site home page Giter Site logo

forbidden-bot's Introduction

Forbidden Statistics Test Environment

Make sure your environment is ready to start the bot.

Setting up your environment

node_modules

Make sure all modules are installed and ready

npm install

Will install dependencies

Database

  1. Download MongoDB Community Server
  2. Download MongoDB Compass (if not included with installer)
  3. Open a Terminal and navigate to the MongoDB Directory C:/Program Files/MongoDB/Server/<VERSION>/bin
  4. Proceed by typing mongo to bring up mongo shell
  5. Create the Database use forbidden will now swap to it (will be created once the collection exists)
  6. Create the settings collection db.createCollection("settings")
  7. Create the Admin User. Type on a single line and create your own user and pwd
db.createUser({
    user: "Admin",
    pwd: "password",
    roles: [{ role: "userAdminAnyDatabase", db: "admin" }]
})
  1. Create a read write user which is used by the bot. Type on a single line
db.createUser({
    user: "User",
    pwd: "password not same as Admin",
    roles: [{ role: "readWrite", db: "forbidden" }]
})

tokens.json

Setup your tokens.json follow the tokens-template.json
Having blank tokens will not break the program. The only required fields are

  1. Bot Token
  2. Bot Prefix
  3. Database

forbidden-bot's People

Contributors

harrisonhoward avatar

Watchers

 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.