Skip to content

Instantly share code, notes, and snippets.

@dengsauve
Created July 31, 2018 23:37
Show Gist options
  • Save dengsauve/0e42a7e5397cff6b21547cc3574d5b10 to your computer and use it in GitHub Desktop.
Save dengsauve/0e42a7e5397cff6b21547cc3574d5b10 to your computer and use it in GitHub Desktop.
Discord Bot Starter Setup
echo "Installing Discord Bot Basics"
echo "Creating Auth file"
touch auth.json
echo -e '{
\t"token":""
}' >> auth.json
echo "Creating node.js package file"
touch package.json
echo -e '{
"name": "name-your-bot",
"version": "1.0.0",
"description": "describe-your-bot",
"main": "bot.js",
"author": "YOUR-NAME-HERE",
"dependencies": {}
}' >> package.json
echo "Installing Discord Bot Dependencies"
npm install discord.io winston --save
echo "Installing Additional Dependencies"
npm install https://github.com/woor/discord.io/tarball/gateway_v6 --save
echo "Finalizing..."
cp node_modules/discord.io/example.js bot.js
echo "What you still need to do:
1. Add your auth token to 'auth.json'
2. Create your bot - see bot.js
3. Name and describe your package in package.json
Once all that's completed, type 'node bot.js'
Happy Coding!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment