This repository was archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (43 loc) · 1.64 KB
/
setup.py
File metadata and controls
57 lines (43 loc) · 1.64 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
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("------")
# Owner id
print('Your id in discord.')
userid = input('ID: ')
env.write(f"ID={userid}\n")
print("------")
# Ifunny
print("We need ifunny info to make these commands work so please input a valid response")
iFunnyemail = input("Your iFunnyemail: ")
env.write(f"iFunnyemail={iFunnyemail}\n")
iFunnypass = input("Your iFunnypass: ")
env.write(f"iFunnypass={iFunnypass}\n")
# 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("------")
env.close()
print('All done, enjoy Conchbot.')
else:
print("You already done this before")