All Projects → JochCool → minesweeper-bot

JochCool / minesweeper-bot

Licence: MIT License
I'm a Discord bot that can generate a random Minesweeper game using spoiler tags, for anyone to play!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to minesweeper-bot

Discord-Reposter
Bot for reposting Discord messages (work in progress)
Stars: ✭ 62 (+129.63%)
Mutual labels:  discord-bot, node-js, discord-js, nodejs-bot
ticketbot
Discord.js Ticket bot using Quick.db (DJS V11)
Stars: ✭ 49 (+81.48%)
Mutual labels:  discord-bot, discord-js, discord-js-bot
Fake-Streamer
A Code that allows you to get the "Streaming" Discord Status WITHOUT Streaming!
Stars: ✭ 48 (+77.78%)
Mutual labels:  discord-bot, node-js, discord-js
todobot
📝🤖 Simple, efficient and most importantly elegant TODO Bot. A virtual TODO List right inside your Discord server!
Stars: ✭ 32 (+18.52%)
Mutual labels:  discord-bot, discord-js, discord-js-bot
Discord-EmojiToRole
A discord.js bot that assigns roles based on reactions to a message.
Stars: ✭ 55 (+103.7%)
Mutual labels:  discord-bot, node-js, discord-js
cytrus-re
A multipurpose Discord bot!
Stars: ✭ 16 (-40.74%)
Mutual labels:  discord-bot, node-js, discord-js
Gyromina
Gyromina, a multipurpose Discord bot with fun + function all in one
Stars: ✭ 97 (+259.26%)
Mutual labels:  node-js, discord-js, discord-js-bot
zuly
🤖 | Hi, I'm zuly, a brazilian bot! Focused on animes!
Stars: ✭ 45 (+66.67%)
Mutual labels:  node-js, discord-js, discord-js-bot
PruneBot
PruneBot is an easy to use multi-purpose bot and it has a free open source code to setup your own prune bot to your own server.
Stars: ✭ 13 (-51.85%)
Mutual labels:  discord-bot, node-js, discord-js
delet
[DEPRECATED - see README.md] a Discord bot made using Discord.js
Stars: ✭ 46 (+70.37%)
Mutual labels:  discord-bot, node-js, discord-js
Discord-multipurpose-bot
A repository with JavaScript and Python versions of the same type of discord commands.
Stars: ✭ 27 (+0%)
Mutual labels:  discord-bot, discord-js
horace
discord.js bot powering the Knights of Academia server with commands like info, AFK, and more
Stars: ✭ 25 (-7.41%)
Mutual labels:  discord-bot, discord-js
Discord-Spammer
Advanced Discord Spammer with multiple options and optional proxys
Stars: ✭ 51 (+88.89%)
Mutual labels:  discord-bot, discord-js
deejay-stereo
Discord music bot built using djs v13, discord-player. Slash Commands only bot
Stars: ✭ 42 (+55.56%)
Mutual labels:  discord-bot, discord-js
discord-lavalink-music-bot
This is music bot for discord made with erelajs, lavalink, discordjs v13-dev
Stars: ✭ 34 (+25.93%)
Mutual labels:  discord-bot, discord-js
SpikeyBot-Discord
SpikeyBot for Discord. Hunger Games simulator, and other helpful commands.
Stars: ✭ 28 (+3.7%)
Mutual labels:  discord-bot, discord-js
ModMail
Discord ModMail Bot
Stars: ✭ 44 (+62.96%)
Mutual labels:  discord-bot, discord-js
Discord-Tools
VSCode extension allowing the integration of a Discord chat, bot templates, snippets, themes and more!
Stars: ✭ 91 (+237.04%)
Mutual labels:  discord-bot, discord-js
Discord-Selfbot
Discord.js selfbot
Stars: ✭ 24 (-11.11%)
Mutual labels:  discord-bot, discord-js
CustomDCBot
Create your own discord bot - Fully customizable and with a lot of features
Stars: ✭ 15 (-44.44%)
Mutual labels:  discord-bot, discord-js

Minesweeper Bot

Hello! I'm a verified Discord bot that can generate a random Minesweeper game using the new spoiler tags, for anyone to play! Use the command /minesweeper or /ms to generate a game.

I listen to both slash commands and text commands (simply typing in chat). For text commands, the default command prefix is !, but this can be changed (see below). Note that in April of 2022, Discord will no longer allow text commands and you will have to start using slash commands.

Click here to invite the bot. To execute text commands, the bot will need "View Channel" and "Send Messages" permissions; this is not necessary for slash commands.

The Minesweeper Command

The /minesweeper command works like this:

/minesweeper [<game-width> [<game-height> [<num-mines> [<dont-start-uncovered>]]]]
  • <game-width> and <game-height> tell me how many squares the game should be wide and tall, for a maximum of 40x20. Default is 8x8.
  • <num-mines> is how many mines there should be in the game, the more mines the more difficult it is. If omitted, I will pick a number based on the size of the game.

When you run this command, I will reply with a grid of spoiler tags. Unless you set the <dont-start-uncovered> parameter to true, the first zeroes will have already been opened for you.

Other Commands

Here's the other commands I listen to:

  • /minesweeperraw — same as /minesweeper, but it gives you the raw text/copypasta so you can share the game.
  • /info — displays info about me.
  • /howtoplay — displays a tutorial about how to play the game.
  • /news — displays info about my latest updates.
  • /ping — displays my heartbeat ping.

The following are text commands only:

  • /setprefix — allows you to change the prefix of all my text commands. Requires Manage Server permission to execute.
  • /help — shows a list of commands.
  • /ms — alias of /minesweeper.
  • /msraw — alias of /minesweeperraw.

Q&A

I have gone offline and am not responding to any commands!

Oh no! Please ping my creator so he can revive me (see the contact section)!

There are no slash commands!

This may be because I don't have permissions to add slash commands to your server; to fix this you must re-invite me using the link above. Also, verify that you have the "Use Application Commands" permission in the server. In any case, you should be able to use slash commands in a DM with me.

Some spoiler tags are missing in large games!

That's Discord's fault, not mine. (See issue #24 on GitHub.)

Contact

My creator is @JochCool#1314. If you have any questions or other remarks, you can DM him, create an issue on GitHub, or join my Discord support server: https://discord.gg/PCxZrrZ.

Installation

If you want to try my code out or run me on a private bot, that is allowed, as long as you remember that the code is published under an MIT license. This means that you must include the LICENSE file every time you distribute the code.

  1. If you haven't done so already, go to https://discord.com/developers/applications and create a new application and turn it into a bot. Take note of two things: the application ID, and the token (on the "Bot" page). You'll need them later.
  2. Clone the repository from GitHub. (Click the green button in the top right corner of the repo that says "code", and click "Download ZIP". Alternatively, if you have Git installed, you can use git clone https://github.com/JochCool/minesweeper-bot.git.)
  3. Open the file "auth.json" and on the second line of that file (where it says "bottoken": "CENSORED"), replace the word CENSORED with the token from step 1. You can ignore the "topggtoken".
  4. Download and install NodeJS.
  5. Open the command line and navigate to the folder in which you unzipped the repo at step 2 (using the cd command). Then type npm install discord.js @discordjs/rest.
  6. To register the slash commands (optional), type node setup.js <id>, and where it says <id> paste the application ID from step 1. Note that it may take up to an hour before the commands appear.
  7. Run node ./ to get me online. Have fun!

If you encounter an error, please open an issue and my creator will take a look.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].