Code Monkey home page Code Monkey logo

wsa-utopia-discord-bot's Introduction

Quality Gate Status Discord invite

環境準備

  • Java 17
  • Maven (use the maven wrapper)

可以透過下列指令檢查使用的是否為 java 17 版本

> java --version
openjdk 17.0.4 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)

> ./mvnw --version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/homebrew/Cellar/maven/3.8.6/libexec
Java version: 18.0.2, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/18.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: zh_TW_#Hant, platform encoding: UTF-8
OS name: "mac os x", version: "13.0.1", arch: "aarch64", family: "mac"

如何在本地環境執行專案

環境變數

環境變數 description
BOT_TOKEN Discord bot token
CHATGPT_TOKEN OpenAI API key
DEPLOYMENT_ENV [beta, prod]

如何設定環境變數 export {環境變數}=..

範例

export DEPLOYMENT_ENV=beta

執行

打包 jar

> ./mvnw clean package

執行

java -jar main/target/main-1.0-SNAPSHOT-jar-with-dependencies.jar

更多相關資訊請參考 烏托邦 WIKI

烏托邦功勛榜

貢獻 feature 前請先參考 How to contribute a new feature?

wsa-utopia-discord-bot's People

Contributors

chen-tf avatar johnny850807 avatar wow890209 avatar frankvicky avatar w305jack avatar clarkwtc avatar wally5077 avatar mirai1129 avatar anri-hsuan avatar hokou avatar shmily7829 avatar miniappletheapple avatar zazachan425 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.