Giter Club home page Giter Club logo

discord-confession-bot's Introduction

discord-confession-bot

Cách cài đặt

Docker

  • Cần tải Docker và docker-compose
  • Clone repo về
  • Đổi tên example.env thành .env
  • Thay đổi TOKEN bằng Token của bot
  • Thay đổi GUILD_ID, REVIEW_CONFESSION_CHANNEL, CONFESSION_CHANNEL.
  • Xoá dòng MONGODB
  • docker-compose up -d để chạy container

Chạy trực tiếp

  • Cần tải nodejs
  • Clone repo về
  • npm i
  • Đổi tên example.env thành .env
  • Thay đổi TOKEN bằng token của bot
  • Thay đổi GUILD_ID, REVIEW_CONFESSION_CHANNEL, CONFESSION_CHANNEL.
  • Thay đổi MONGODB bằng link tới mongodb
  • npm start

Replit

  • Upgrade lên Nodejs 16 bằng cách bỏ lệnh sau vào phần console
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
  • Giống với chạy trực tiếp nhưng add thêm dòng dưới vào src/Bot.ts
require('http').createServer((req:any, res:any) => res.end('Bot is alive!')).listen(3000)

Heroku

  • Giống với chạy trực tiếp nhưng add thêm dòng dưới vào src/Bot.ts
require('http').createServer((req:any, res:any) => res.end('Bot is alive!')).listen(process.env.PORT)

discord-confession-bot's People

Contributors

phamleduy04 avatar dxtoan1992 avatar mend-bolt-for-github[bot] 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.