GithubHelp home page GithubHelp logo

discowork / discowork Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 115 KB

A framework for discord bots

Shell 0.39% JavaScript 2.94% TypeScript 96.66%
discord discord-framework discord-js bot-framework

discowork's Introduction

[object Object]

Discowork

A simple discord.js framework for creating great things.

Click in Use this template and make discord bots!

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

ENVIRONMENT - development/production

BOT_TOKEN - Your bot's token

DB_HOST - MongoDB Host

DB_USER - MongoDB User

DB_PASS - MongoDB Password

This project currently only accepts mongodb connection, you can change the way it connects to the database in the src/Core/Cliente.ts file.

How to Run the Project

Create the .env file based on the .env.example file. To see how to create the BOT_TOKEN read the following topic.

Run yarn install to install dependencies.

Run yarn dev to give life to the bot.

How to create BOT_TOKEN and invite your server

Access Discord Developer Portal and click in New Application button.

Enter a name for your bot and click the create button.

Select the bot settings column, and click the add bot button.

Click the copy button, this is your bot's token, add in BOT_TOKEN environment in .env file. Now we need to configure some things to invite him to the server.

In Privileged Gateway Intents, check the option PRESENCE INTENT and SERVER MEMBERS INTENT.

Click on OAuth2 and on url generator, on SCOPES check the options bot and applications.commands. In BOT PERMISSIONS select the permissions you want for your bot, read them carefully and think about the functions your bot will perform.

Copy the url that was generated and paste into the browser, add your bot on the server and be happy!

discowork's People

Contributors

rhuangabrielsantos avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

goodnato

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.