jochcool / minesweeper-bot Goto Github PK
View Code? Open in Web Editor NEWI'm a Discord bot that can generate a random Minesweeper game using spoiler tags, for anyone to play!
License: MIT License
I'm a Discord bot that can generate a random Minesweeper game using spoiler tags, for anyone to play!
License: MIT License
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.
Discord allows commands to have translations (docs); this bot could make use of that.
Description
This bug is a syntax error that prevents the news command from working, it is due to a .
in line 3 of news.json
Screenshot
http://prntscr.com/np60kt
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.
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.
Explain what a command actually does. (Necessary for #30.)
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:
Expected: !minesweeper [<gameWidth> <gameHeigth> [<numMines> [dontStartUncovered]]]
Actual: !minesweeper [<gameWidth>]
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.
Instead of rewriting the entire syntax, the !help
command should properly show that a command is an alias when it is, like this:
!ms โ !minesweeper
Originally suggested by SaltySoySauce.
Description of the feature
Command, that send game in channel one time per minute
Reason
For automacly send game.
Details (optional)
I wanted to make pull request, but idk how (lol)
there code: https://github.com/INotSleep/minesweeper-bot/
Not a single other application has such a command, and I doubt anyone actually runs it.
No idea why I'm getting this whenver using the minesweeper command. All the perms look correct.
The current command prefix !
is a fairly generic prefix for a fairly specific bot. To prevent the issue of multiple bots listening to the same prefix, the prefix should be more specific, like ms!
or ms
.
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.
Make the board height and width optional. That way if you want to play a quick game of minesweeper, you can just type !minesweeper. The board size could be 8x8. The mines could be random.
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.
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 :)
Description
When using the info
or howtoplay
command, the reply acts like the prefix is always !
, even if this was changed using the setprefix
command.
Expected behavior
The prefix matches the prefix of the guild.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.