aoi.customFunctions will has more functions soon addtional
createGames
: this functions can play games by doing $createGames[GameType
:snake,rps;json]
example 1
$createGame[snake;
{"gamedata": {"embeddata": {"color": "BLUE", "title": "Snake Game", "description": "Use the buttons to control the snake!"}}}]
example 2
$createGame[rps;{
"gamedata": {
"buttons": {
"rock": "๐ชจ",
"scissors": "โ๏ธ",
"paper": "๐"
},
"result": {
"win": "Congratulations! You won the game by choosing {your_choice}. (My choice was {bot_choice}.)",
"lose": "You lost. I chose {bot_choice}.",
"draw": "It's a draw. I also chose {bot_choice}."
},
"embeddata": {
"color": "Yellow",
"title": "Rock Paper Scissors",
"description": "click!"
}
}
}]