File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -38,29 +38,25 @@ Using Koncorda is easy, especially with the `koncorda` entrypoint.
3838fun 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.
4848The above example creates a bot that responds "Hello world!" to ` !hello ` .
4949
5050Extending the configuration is possible by creating an ` application.conf ` HOCON file. By default, Koncorda uses what
5151is defined in [ reference.conf] ( koncorda/src/main/resources/reference.conf ) , but this can be overridden.
5252
5353``` hocon
5454koncorda {
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
6258your-bot {
63- some-option = "some value"
59+ some-option = "some value"
6460}
6561```
6662
You can’t perform that action at this time.
0 commit comments