bbarker / diz

Discord bot in ZIO and Scala 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiZ - Discord bot in Scala 3 and ZIO

Tips

Currently, I don't know how to appropriately stop discord4j, at least when running in sbt, so:

sbt run & echo $!
kill -9 <pid>

Note everything below is from a template and needs removal or adaptation

Example sbt project that compiles using Scala 3

Continuous Integration

Usage

This is a normal sbt project. You can compile code with sbt compile and run it with sbt run. sbt console will start a Scala 3 REPL.

If compiling this example project fails, you probably have a global sbt plugin that does not work with Scala 3. You might try disabling plugins in ~/.sbt/1.0/plugins and ~/.sbt/1.0.

Making a new Scala 3 project

The fastest way to start a new Scala 3 project is to use one of the following templates:

Using Scala 3 in an existing project

You will need to make the following adjustments to your build:

project/build.properties

sbt.version=1.6.2

You must use sbt 1.5.5 or newer; older versions of sbt are not supported.

build.sbt

Set up the Scala 3 version:

scalaVersion := "3.1.1"

Getting your project to compile with Scala 3

For help with porting an existing Scala 2 project to Scala 3, see the Scala 3 migration guide.

Need help?

https://www.scala-lang.org/community/ has links.

About

Discord bot in ZIO and Scala 3

License:Creative Commons Zero v1.0 Universal


Languages

Language:Scala 100.0%