forked from WhoIsConch/ConchBot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (52 loc) · 2.44 KB
/
setup.py
File metadata and controls
67 lines (52 loc) · 2.44 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from logging import error
import os
if not os.path.exists('.env'):
env = open(".env", "w")
print("------")
print('Welcome to Conchbot setup.')
print("------")
# TOKEN
print('Your bot\'s token can be obtained from https://discord.com/developers/applications.')
token = input('Bot token: ')
env.write(f"TOKEN={token}\n")
print("------")
# Reddit ID
reddit_application_id = input("Your Reddit API id application key: ")
env.write(f"redditid={reddit_application_id}\n")
print("------")
# Reddit Secret
reddit_application_secret = input("Your Reddit API secret application key: ")
env.write(f"redditsecret={reddit_application_secret}\n")
print("------")
# Reddit Password
reddit_application_password = input("Your Reddit API password application key: ")
env.write(f"redditpassword={reddit_application_secret}\n")
print("You can get PGamerx API by going to this link: https://api-info.pgamerx.com/register.html")
# PGamerx API Key
print("------")
pgamerx_api_key = input("Your PGamerx API id application key: ")
env.write(f"aiapikey={pgamerx_api_key}\n")
print("------")
# Github Repo Link
print("To get the github repository go to https://github.com and use a existing or create a repository. This is for refresh command. Note: Private repository might not work")
print("------")
github_repo_link = input("Your Github Repository Link: ")
env.write(f"GITHUB_REPO_LINK={github_repo_link}\n")
# Github Repo Branch
print("------")
print("To get the github repository branch go to https://github.com and create or use existing a repository. This is for refresh command. Note: Private repository might not work")
print("To get branch is where it says branch and a number if you don't see it create file or upload the code to the repo and it should appear and click on it. The default should be `main`")
print("------")
github_repo_branch = input("Your Github Repository Name: ")
env.write(f"GITHUB_REPO_BRANCH={github_repo_branch}\n")
print("------")
print("We need error reporting channel so that means you need to get the id of the channel")
print("------")
error_reporting_channel = input("Your error channel id: ")
env.write(f"ERROR_CHANNEL={error_reporting_channel}")
print("------")
# Close File
env.close()
print('All done, enjoy Conchbot.')
else:
print("You already done this before")