SamuKata
Botlabs
Botlabs

patreon


YAGPDB v1.12

Relatively small update, the last major update was 1.10 and since then a lot of changes have been happening to the backend of the bot, for starter the bot now has the capability to scale horizontally, which required me to build a shard orchestrating system for that, things are finally stable on that end and i have started on feature development again, so here's possibly the last update for 2018:


General Changes


You can now put newlines inside `{{actions}}`

{{$embed := cembed 
"title" (joinStr "" "Hello there, "  .User.Username "!") 
"description" "This is a description"}}
```

Added `{{parseArgs}}` to custom commands

Allows for you to easily require arguments, and ensure they are properly passed.


{{$args := parseArgs 2 ""
    (carg "channel" "channel to send to")
    (carg "string" "text to send")}}

{{sendMessage ($args.Get 0).ID ($args.Get 1)}}

```


Syntax for carg: `{{carg type name}}`


Syntax for parseArgs: `{{parseArgs number-of-required-args message-if-wrong-args-passed ...args}}`


Available types for carg:


`int` - whole numbers

`string` - text

`user` - user mentions, has the User type

`userid` - mentions or user id's, has the int type

`channel` - channel mention or ID, has the channel type


More docs on this will come later on docs.yagpdb.xyz


More Creators