Created
July 31, 2018 23:37
-
-
Save dengsauve/0e42a7e5397cff6b21547cc3574d5b10 to your computer and use it in GitHub Desktop.
Discord Bot Starter Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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