Giter Club home page Giter Club logo

minesweeper-bot's People

Contributors

dependabot[bot] avatar jochcool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minesweeper-bot's Issues

The bot only checks role permissions, not channel permissions.

Description
If you do not grant the bot permission to send messages via a role, but using channel overwrites, then the bot still does not send any messages.

To reproduce:
Remove the send messages permission from all roles the bot has and overwrite the permission in a specific channel. Then try to run any command and the bot will not respond.

Expected behavior
If the bot gets permission in any way to send messages in a channel, it should always do so when it receives a valid command.

Localisation

Discord allows commands to have translations (docs); this bot could make use of that.

Sometimes the bot suddenly gets "killed".

After normally over a week of running the code, it suddenly stops working. All that happens is that the word "Killed" gets logged and the program exists. No error message or anything.

This sometimes happens minutes after there was a dis- and reconnect, but I have not been able to confirm this.

An extra argument to the minesweeper command to start blank

Description of the feature
This argument would basically undo what was done in #18 for one game. It would create a game where every single square is hidden from the start and you'd have to open them manually.

Reason
Some people may not like the changes that were made in the 1.7 update, so this will be useful for them.

In large games, sometimes some tiles are missing on desktop

Description
If a bot sends a Minesweeper game that is split into multiple messages, then sometimes the last few tiles (most commonly the last two) are missing. This appears to happen randomly. The game itself is generated correctly, though.

To reproduce:
Create some very large games, like 20x20. If the bug does not occur, try again a few times.

Expected behavior
All tiles appear.

Screenshots
Here's an example. I cleared some of the tiles around it:
image

Start the game with a single region uncovered

Description of the feature
The bot should select a random safe region and uncover it so it's not in a spoiler. It could select a random 0 and uncover the all neighbors until no 0 has an uncovered neighbor left.

Reason
Very often when I start the game I hit a mine, or have to uncover all the zeros manually. The bot could do that automatically.

Given a sample board, this is what the bot would output:

||:zero:|| ||:zero:|| ||:zero:|| ||:two:|| ||:bomb:||
||:one:|| ||:two:|| ||:one:|| ||:three:|| ||:bomb:||
||:bomb:|| ||:two:|| ||:bomb:|| ||:two:|| ||:one:||

The wanted output would be:

:zero: :zero: :zero: :two: ||:bomb:||
:one: :two: :one: :three: ||:bomb:||
||:bomb:|| ||:two:|| ||:bomb:|| ||:two:|| ||:one:||

This way the player is given a sample region and a good start, and can safely uncover the board without having to reset if they don't hit the proper tile.

Remove news command

Not a single other application has such a command, and I doubt anyone actually runs it.

Bot doesnt respond to any commands.

Description
Bot doesn't respond to any commands

To reproduce:
Steps to reproduce the behavior:

  1. Use any bot command

Expected behavior
Bot should respond to commands.

Screenshots
image

Slash commands

The bot currently uses text commands, but message content will become a priviliged intent in April 2022. For this reason, slash commands are not only a better user experience, but also necessary.

Change Prefix

Description of the feature
A 'changeprefix' command

Reason
This is because the current command prefix ! is very common and a server that minesweeper is in may already have a bot with the ! prefix.

Remove 'Unknown command' message

It would be nice if you could remove the Unknown command error message because whenever i use a bot that uses the ! prefix or someone writes a single ! in his message the bot will respond with that message.
Just let the bot do nothing when a unknown command gets called - i did the same for my bots and the chat is clean and nice. You could also put the !help command in the bot's current game so everybody knows how to get your commands.
Have a nice day and thank you for creating a cool bot :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.