forked from antixenoinitiative/warden.bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSETUP.ps1
34 lines (32 loc) · 1.24 KB
/
SETUP.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Write-Host "Running DEV Setup for Warden.Bot..."
# Creating .ENV File
$Token = Read-Host -Prompt 'Enter your Discord Bot Token'
$Client = Read-Host -Prompt 'Enter your Discord Bot Client ID'
$Guild = Read-Host -Prompt 'Enter your Test Server ID'
$LogChannel = Read-Host -Prompt 'Enter your Log Channel ID'
Set-Content .\.env "# Discord Bot Token (required)"
Add-Content .\.env "TOKEN=$Token"
Add-Content .\.env ""
Add-Content .\.env "# General Addtings (recommended)"
Add-Content .\.env "GUILDID=$Guild"
Add-Content .\.env "CLIENTID=$Client"
Add-Content .\.env "LOGCHANNEL=$LogChannel"
Add-Content .\.env "EVENTCHANNELID="
Add-Content .\.env "STAFFCHANNELID="
Add-Content .\.env ""
Add-Content .\.env "# Defence Targets Embed (optional)"
Add-Content .\.env "CHANNELID="
Add-Content .\.env "MESSAGEID="
Add-Content .\.env ""
Add-Content .\.env "# Google Auth Token (optional)"
Add-Content .\.env "GOOGLEKEYID="
Add-Content .\.env "GOOGLEKEY="
Add-Content .\.env ""
Add-Content .\.env "# Database & API (optional)"
Add-Content .\.env "DATABASE_URL_WATCH="
Add-Content .\.env "DATABASE_URL_WARDEN="
Add-Content .\.env "INARAKEY="
Add-Content .\.env "GRAPHKEY="
# Install Dependencies
npm i
Write-Host "DEV Setup Complete!, try running the bot with 'npm start' in terminal"