Git Product home page Git Product logo

docchatbot_bert's Introduction

Discordjs with TypeScript

use discord.js in TypeScript to create discord bot

Development

Install Dependency

conda create -n {ENV_NAME} python=3.10 nodejs=20
npm i
pip install -r pip_requirements.txt

(If at local) Login Google Cloud for VertexAI

gcloud auth application-default set-quota-project <PROJECT_ID>
gcloud auth application-default login

Create your .env

cp .env.sample .env

set your environment variable according to your app

Build and Start App

npm run build
npm run start

or use npm run dev for developing

Discord Bot

Discord Developer Portal https://discord.com/developers/applications

Copy configs of your discord application

  1. Create an application in developer portal
  2. Copy CLIENT_ID from OAuth2 tab
  3. Copy Token from Bot tab
  4. Copy GUILD_ID from your channel

Invite your application to the channel with some permissions

  1. In developer portal OAuth2 -> URL Generator
  2. Check bot option in scopes section
  3. Check the permissions your want to set for your bot (Send Messages, Use Slash Commands for example)
  4. Copy the generated URL
  5. Visit the link you copied in step4
  6. Select the channel you want to add the bot
  7. Run the bot application and enjoy it

docchatbot_bert's People

Contributors

kent1029 avatar

Watchers

Kostas Georgiou avatar  avatar

docchatbot_bert's Issues

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.