Undercooked is a text-based co-op cooking game made for the August 2018 Demake Jam. You can play it on the official Discord server, invite the official bot to your own server or build and deploy your own Discord bot.
Undercooked is licensed under the GNU Affero General Public License v3 because yes. It has dependencies on a few node.js modules (discord.io and its three dependencies) that are all either MIT licensed or public domain.
Demake Jam. I already said that.
- Creating the Discord Bot:
- Log into Discord or create an account if you don't have one yet.
- Go to the Discord Application Page.
- Click the "New App" button.
- Give your bot a name (like "Dave's Undercooked Bot") and a description and all that, then click "Create App."
- Click the "Create a Bot User" button.
- Fill out the bot creation form (leave "Require OAuth2 Grant Code" unchecked).
- After finishing that, click to reveal your Token and save that as well as your Client ID for the next steps.
- Setting up the Bot code on your server:
git clone https://github.com/HauntedBees/Undercooked.git
(or you can just download it from github)cd Undercooked
npm install
(the only dependency is discord.io, and I guess whatever that depends on)- Create an
auth.json
file with the format{ "token": "XXXX" }
, replacing the X's with your Token from Step 1. - Create a
run.sh
script withnode bot.js > out.txt
in it.- Make sure the user running the script has write permission to whatever folder you're writing logs to!
chmod +x run.sh
- Execute
./run.sh
to start running the bot!- You may need to also run
npm install woor/discord.io#gateway_v6
if the bot doesn't run.
- You may need to also run
- Inviting the Bot to your server.
- Grab the URL
https://discordapp.com/oauth2/authorize?client_id=XXXXXXX&scope=bot&permissions=0
. - Replace all those X's in the middle with your Client ID from Step 1.
- Go to that URL, and invite the bot to your server!
- Your bot will need permissions to read, write, and delete messages in any channels you want to play Undercooked in, so give them the appropriate roles for that.
- Grab the URL
- Playing Undercooked.
- Once the bot is running and in your server, type INIT to initialize a new game.
- Further instructions are provided in-game from this point on. You can type !HELP for more information.
Go for it! No new changes will be accepted until September 2018 since the Demake Game Jam is being judged up until that point. But after that, if you want to make a change, go nuts! Make those pull requests! Add new features or levels! Fix existing stuff! Go nuts! Any changes that get accepted into the master branch will be deployed to the primary Undercooked bot and server. Please make all changes GNU AGPLv3 compatible, or - even better - GNU AGPLv3 licensed.