/Minesweeper

Serverless Minesweeper Discord Bot

Primary LanguageTypeScriptMIT LicenseMIT

Minesweeper Bot

This is yet another Minesweeper but using Buttons (and the new Context Menu commands 👀), but something is different -- it's completely serverless! Complete state is stored in custom_id of Button message component and all custom_ids are patched when it's updated.

You can invite it here.

Original idea from moosh#3874's amazing Mini-sweeper bot :3

Deploy it!

Want your own instance of bot? It's easy, navigate to this link to Deploy and fill out PUBLIC_KEY and TOKEN then deploy! You'll have a link in the end (ends with .deno.dev) which you can set as Interactions Endpoint URL in Developer Portal.

But why bot scope?

Discord doesn't provide us with any way to edit message in response to a Context Menu command (it would be nice if they allowed type 7 UPDATE_MESSAGE with type 3 MESSAGE application commands). So this bot currently uses a bot user to edit the message using PATCH /channels/:id/messages/:id endpoint.

License

MIT Licensed

Copyright 2022 © DjDeveloperr