Newsroom

所属分类:自然语言处理
开发工具:kotlin
文件大小:14KB
下载次数:0
上传日期:2020-01-29 05:25:06
上 传 者sh-1993
说明:  用于轻松协作新闻的Discord bot
(Discord bot for easy collaborative journalism)

文件列表:
Dockerfile (178, 2020-01-29)
build.gradle (1186, 2020-01-29)
deploy.sh (802, 2020-01-29)
docker-compose.yml (114, 2020-01-29)
gradle (0, 2020-01-29)
gradle\wrapper (0, 2020-01-29)
gradle\wrapper\gradle-wrapper.properties (233, 2020-01-29)
gradlew (5296, 2020-01-29)
gradlew.bat (2176, 2020-01-29)
install-remote.sh (1015, 2020-01-29)
newsroom-bot.service (349, 2020-01-29)
src (0, 2020-01-29)
src\main (0, 2020-01-29)
src\main\kotlin (0, 2020-01-29)
src\main\kotlin\io (0, 2020-01-29)
src\main\kotlin\io\github (0, 2020-01-29)
src\main\kotlin\io\github\gjum (0, 2020-01-29)
src\main\kotlin\io\github\gjum\discord (0, 2020-01-29)
src\main\kotlin\io\github\gjum\discord\newsroom (0, 2020-01-29)
src\main\kotlin\io\github\gjum\discord\newsroom\Database.kt (4332, 2020-01-29)
src\main\kotlin\io\github\gjum\discord\newsroom\Discord.kt (8314, 2020-01-29)
src\main\kotlin\io\github\gjum\discord\newsroom\Main.kt (180, 2020-01-29)
start.sh (116, 2020-01-29)

# Newsroom Discord bot for easy collaborative journalism. ## Usage Build the JAR and fetch dependencies: ./gradlew installDist Configure by setting environment variables: DISCORD_TOKEN= DB_FILE=sqlite:newsroom.sqlite DISCORD_CMD_PREFIX=! # optional STAR_CHANNEL_ID=1230***1230***2130*** # optional Start the server: java -cp "build/install/newsroom/lib/*" io.github.gjum.discord.newsroom.MainKt ### Run with Docker Create a `.env` file containing the environment variables above. Then build and start the container: ./gradlew installDist docker-compose up -d --build To see the application logs: docker-compose logs -tf ### Deploy using Docker-Compose ```shell script cp -nv production.example.yml production.yml # copy template "$EDITOR" production.yml # change settings to your desire docker-compose -f docker-compose.yml -f production.yml up -d --build ``` See also `deploy.sh` for an example how to deploy on a remote host.

近期下载者

相关文件


收藏者