Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.05 KB

README.md

File metadata and controls

34 lines (27 loc) · 2.05 KB

Snakecord

A simple and fun way to play Snake inside of Discord! This Discord bot was made with Replit, using Discord's new message components! This project was made for the 2021 Replit Discord Bot task. (🥈 2nd place winner!)

Invite Snakecord to your Discord server here.

Features

This bot has a lot of different features, including automatic movement, points system and backgrounds! Cool Stuff!

Screenshot  

Run the code yourself

Repl.it:

  • Fork the GitHub Repository inside of Replit. (Home -> Plus Button)
  • Open the Secrets window on the left.
  • Add the following secrets:
    • PRODUCTION_STABLE as the key, and your bot's token as the value.
    • DEVELOPMENT_BETA as the key, and your bot's token as the value. (Only add this secret if you want a separate development bot.)
  • Go to the Shell.
  • Run bash start.sh to install Node 15.3.0 and to start the bot. (Run bash beta.start.sh if you want to start the separate development bot.)

Note: Using the Repl.it shell and executing the bash scripts is required because Replit uses Node 12.16.1 instead of Node 15.3.0.

Local:

  • Install Node 15.3.0.
  • Clone the GitHub Repository to your machine.
  • Add the following environment variables:
    • PRODUCTION_STABLE as the key, and your bot's token as the value.
    • DEVELOPMENT_BETA as the key, and your bot's token as the value. (Only add this variable if you want a separate development bot.)
  • Run node src/index.js production stable to install Node 15.3.0 and to start the bot. (Run node src/index.js development beta if you want to start the development bot.)

License