Using git clone:
- You have to install Node.js and Git.
- Create a folder in a place you won't accidentally delete it.
- Open Command Prompt (Windows) or terminal (Linux).
- Execute command
cd [path to folder]
.- Example on Windows:
cd C:\Users\0rso\Desktop\discord-giveaway-bot
- Example on Linux:
cd /home/0rso/Documents/discord-giveaway-bot
- Example on Windows:
- Execute
git clone https://github.com/0rso/discord-giveaway-bot.git
command. - When you see all of the github files in your folder this means that you downloaded the bot succesfully.
- You have to install Node.js and a program to extract zip files. I recommend 7-Zip since it is 100% free, no ad and open-source.
- Create a folder in a place you won't accidentally delete it.
- Download the repository as a zip file, which can be done here.
- Extract the zip file to the folder.
- When you see all of the github files in your folder this means that you downloaded the bot succesfully.
Step 1: Open config.json and change the following values:
Required value | What does this value mean? |
---|---|
token |
(String) This is what discord will use to log into your bot. Get this token from the Discord Developer Portal |
prefix |
(String) This is the prefix to the commands. |
Optional Value | What does this value mean? |
---|---|
giveawayRoleID |
(String) This is the role the bot will mention when the giveaway starts. Default (empty) will be set to @everyone . Has to be a role ID |
showMention |
(Boolean) This determines if the mention will be shown or not. |
giveawayMention |
(Boolean) This determines if there will be a role mentioned. |
giveawayManagerID |
(String) This options lets the bot know who is able to start giveaways. Default (empty) will be set to any user with MANAGE_MESSAGES permission. Has to be a user ID. |
Step 2: Install dependencies (only the first time)
- Windows:
- Run
setup.bat
file
- Run
- Linux:
- Run
npm i
command
- Run
Step 3: Start the bot
- Windows:
- Run
start.bat
file
- Run
- Linux:
- Run
node index.js
command
- Run