Create the discord.js sample app deployable by Klotho.
- Save the Token and Application Id in
discord_config.json
- Save the
guildId
indiscord_config.json
The discord_config.json
should look like:
{
"token": "<token>",
"clientId": "<application id>",
"guildId": "<guild id>"
}
ts-node index.ts
A configuration file is provided to use Fargate for execution units to provide an always-on bot.
klotho -c klotho.yaml
After compilation, copy your discord config to allow the IaC to upload it as a secret:
cp discord_config.json compiled/