Sign inSign up

bdatdo0601/dabotboi

By bdatdo0601

•Updated almost 8 years ago

Da Bot Boi Discord Server

Image
0

1.6K

bdatdo0601/dabotboi repository overview

⁠Discord-Bot-Boi

Build Status Maintainability Test Coverage dependencies Status devDependencies Status PRs Welcome

Utility Discord Bot (DaBotBoi) built for primarily for The Gang Discord channel.

⁠Prerequisites

Some of these are opinionated!!

If you know what you are doing, feel free to use your own tools

⁠Core

Ensure you can run these programs from your terminal/shell

⁠Development

The Project is developed using TypeScript⁠, basically JavaScript with some twist

⁠Contribution

  • Git⁠: Version control, allow seamless collaboration on projects

⁠Installation

  1. Open your terminal/shell and clone (or Download and Unzip) the project
$ git clone https://github.com/bdatdo0601/Discord-Bot-Boi.git
  1. Locate to the root of the project and install dependencies with Yarn
$ cd Discord-Bot-Boi/
$ yarn
  1. setup .env at the root of the project to set required environment variable(refer to .sample-env for example)

⁠Usage

Below are availabe command for the project. Checkout package.json to see the exact command executed:

$ yarn lint # cleaning up source code
$ yarn start # start the project in development mode
$ test:specific # test specific file
$ yarn test # run test against the project
$ yarn build-server # compile project into production version
$ yarn coverage # update the coverage status of the project
$ yarn clean # clear build folder
$ yarn build # clear build folder and compile project to production version
$ yarn start-production # start the project in production mode
$ yarn deploy # build the project and start it in production mode

⁠Testing

To get coverage status for the project from local machine, setup .coveralls.yml with repo_token from coveralls.io⁠

⁠Testing Area

This⁠ is the testing area for the discord. By default, everyone who joins will be adminstrator so they can fully play around. With that being said, please do not destroy the server.

⁠Project Directory

.
├── LICENSE                                 # License for the project
├── Procfile                                # Heroku configuration (use for deployment)
├── README.md
├── build/                                  # Storing the production (compiled) version of the project
├── coverage/                               # Coverage Report (How well-tested the project is)
├── package.json                            # Project Configuration (declare dependencies, scripts, etc)
├── src/                                    # Source code folder
│   ├── commands/                           # commands that are available to use
│   │   ├── command.interface.ts            # Interfaces to ensure static typings
│   │   ├── index.ts                        # Starting point of this (sub)directory
│   │   ├── mock/                           # Example command
│   │   │   └── index.ts
│   ├── events/                             # Discord event management
│   │   ├── event.interface.ts
│   │   ├── index.ts
│   │   ├── message/                        # Example event
│   │   │   └── index.ts
│   ├── lib/                                # Utility functions
│   │   └── api/
│   │       └── reddit/                     # Example utility for RedditAPI
│   │           ├── index.ts
│   │           └── reddit.interface.ts
│   ├── res/                                # Static Resources
│   ├─── typings/                           # TypeScript Typings for external, untyped JS Module
│   │  └── declarations/                    # Declaration Files
│   │       └── json.d.ts
│   └─── index.ts                           # Starting point of the entire project
├── test/                                   # Automated testing
├── tsconfig.json                           # TypeScript Configuration
└── yarn.lock

⁠Contribution

Feel free to create issues to request new feature or fork the project and create pull requests.

Tag summary

Content type

Image

Digest

Size

158.6 MB

Last updated

almost 8 years ago

docker pull bdatdo0601/dabotboi