Skip to content

Commit 0d2bce2

Browse files
authored
Fix incorrect code snippet and useless example
1 parent 6fd945f commit 0d2bce2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,25 @@ Using Koncorda is easy, especially with the `koncorda` entrypoint.
3838
fun main() {
3939
koncorda {
4040
commmands {
41-
tail("hello") { event.respond("Hello world!") }
41+
leaf("hello") { event.respond("Hello world!") }
4242
}
4343
}.start()
4444
}
4545
```
4646

47-
DSLs like `command` make adding new functionality as easy as possible.
47+
DSLs like `commands` make adding new functionality as easy as possible.
4848
The above example creates a bot that responds "Hello world!" to `!hello`.
4949

5050
Extending the configuration is possible by creating an `application.conf` HOCON file. By default, Koncorda uses what
5151
is defined in [reference.conf](koncorda/src/main/resources/reference.conf), but this can be overridden.
5252

5353
```hocon
5454
koncorda {
55-
// The Discord bot token, comes from the environmental variable DISCORD_TOKEN
56-
discord-token = ${DISCORD_TOKEN}
57-
// The command prefix, defaults to ! or the environmental variable COMMAND_PREFIX
58-
command-prefix = "!"
59-
command-prefix = ${?COMMAND_PREFIX}
55+
command-prefix = "/"
6056
}
6157
6258
your-bot {
63-
some-option = "some value"
59+
some-option = "some value"
6460
}
6561
```
6662

0 commit comments

Comments
 (0)