Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.
albandewildePublic archive

About

Kotlin implementation of https://gitlab.com/neuware/xkcd-bot for school kotlin TP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

xkcd-bot

Kotlin implementation of https://gitlab.com/neuware/xkcd-bot for school kotlin TP.
(The search by key word or regex isn't implemented)

The project is a basic gradle project.

Start the project

In docker

Before all you must copy the .env.tpl file into .env and complete it with the token of your bot given by discord.

To start the project with the make file.
You must first build the image with make image then run it with make ctn-run.

To make a quick run use make quick. It'll do gadle run in a docker container.

With gradlew

Simply run ./gradlew run to run the project.
You can also use ./gradlew build to build the project. The build will be in the ./app/build/distributions/ directory.

TP notation

Out professor tell us the code should be clean and idiomatic kotlin.

It should also use all of this:

  • - lazy
  • - latinit
  • - HOF
  • - data class
  • - delegation
  • - if
  • - for loop
  • - smart cast (is)
  • - collection
  • - extentions
  • - lambda
  • - koroutine
  • - scope func

About

Kotlin implementation of https://gitlab.com/neuware/xkcd-bot for school kotlin TP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages