Skip to content

PhilippFr/hub-discord

 
 

Repository files navigation

HubBOT

Introduction | Technologies | Contributing

Introduction

A Discord bot for entertainment and guild management.

Technologies

Project developed using the technologies below:

  • Node.js
  • Typescript
  • Jest
  • Docker
  • Docker-compose
  • TS-Node-Dev
  • Node-CRON
  • Discord.js

Contributing

Before starting, read the general community contribution guide.

You can clone the repository and install dependencies with the following commands.

Clonando repositório.

git clone https://github.com/aHub-Tech/hub-discord.git
# gh repo clone aHub-Tech/hub-discord

Installing dependencies.

yarn install

Configuring environment variables

Before starting the project you need to set some environment variables, create a .env file at the root of the project, with the following variables.

# Secret token
SECRET_TOKEN=your_bot_secret_token

# Database informations
DATABASE_DB=your_database_name
DATABASE_HOST=your_database_host
DATABASE_PORT=your_database_port
DATABASE_USER=your_database_user
DATABASE_PASSWORD=your_database_password

To start the project you can use the following command.

yarn dev

Other commands can be used.

# Build the project
yarn buid

# Start built project
yarn start

# Start tests
yarn test

# Use TypeORM CLI
yarn typeorm

Packages

No packages published

Languages

  • TypeScript 58.0%
  • JavaScript 39.3%
  • Dockerfile 2.7%