This is a Discord bot that lets you play 2048.
To start a game, mention the bot in a text channel and the bot will start a game in that channel.
Make sure the bot has permission to read messages, send messages, and add reactions in the channels that it is used.
To run your own instance of the bot:
- Create an application on Discord.
- Go to the Bot page for your application and create a bot account.
- Copy the bot's token.
- Run the bot with
npm start <token>
, or set the environment variableDISCORD_2048_BOT_TOKEN
and just runnpm start
.
Add the bot to your server by going to the following URL, replacing <YOUR_CLIENT_ID_HERE>
with the client ID found on the OAuth2 page of the Discord application you created.
https://discord.com/api/oauth2/authorize?client_id=<YOUR_CLIENT_ID_HERE>&scope=bot
Make sure the bot has permission to read messages, send messages, and add reactions in the channels that it is used.