top | item 27328770

(no title)

ldd | 4 years ago

I went ahead and did a helper bot for my game using discord.js in typescript.

It even has daily trivia and a currency -- necrocoins.

I think it went relatively well, but I can understand why other people go for serverless solutions.

For those that want to know, google cloud's free tier was and is enough to handle a bot with relatively low amount of active players (around 590 as of this post)

discuss

order

ivw|4 years ago

I've also made a Discord slash commands bot recently in a single AWS Lambda (Node.js) and a DynamoDB table (all free tier). My only dependency is `discord-interactions`, to validate requests, which Discord requires.

I like the serverless approach because if the bot commands are only used a few times a day, the lambda only has to run a few times a day and takes at most 0.5 sec (Discord has a 3 second timeout for slash commands)

janczukt|4 years ago

Yes, serverless is a great match, especially for human-triggered slash commands.

BTW, Fusebot is not subject to the 3s limitation. We take care of responding to Discord within 3s and then let you run your code for longer than 3s and send any number of responses afterwards.

chrismore|4 years ago

Oh nice. Did other people use your bot or was it mostly for your channels?

ldd|4 years ago

It was mostly for my channels and discord server to provide a way to collect creatures, trade them, buy and sell items, etc.

I haven't really considered open sourcing it yet, but I can see how other monster taming games may eventually want to implement something like it ;D