Commit 24d89e16 authored by IS1_4M's avatar IS1_4M
Browse files

Fixed importing creds from external file.

parent cd785a58
......@@ -15,8 +15,7 @@ from PublicChannel import PubChanSuite, PublicChan
from ClubChannel import ClubSuite, Club
from restrictedchannel import RestrictChan, RestrictChanSuite
from handles import User, ECMember, ECStudent, ECFaculty, Organizer, Convener, Admin, SuperAdmin
import credentials
import json
def get_member_by_discord_name(guild, discord_name):
for member in guild.members:
......@@ -36,11 +35,12 @@ def is_auth(channel, auth_channel_name):
auth_channel = 'auth'
domain_dest = '@earlham.edu'
send_account_email='earlhamhackerscontrol@gmail.com'
with open('../../../ECHackersBotCreds/credentials.json') as file:
credentials = json.load(file)
student_role_name = 'ECStudent'
faculty_role_name = 'ECFaculty'
account_password = credentials.email_password
account_password = credentials['email_password']
clubs = []
users = []
......@@ -256,4 +256,4 @@ async def on_message(message):
# In meet & greet lobbies, link to games, shows,
# and movies after 15 min of people talking.
# We NEED to be able to host remote events. Convocation, Speaker events, and more
client.run(credentials.bot_token)
\ No newline at end of file
client.run(credentials['bot_token'])
\ No newline at end of file
......@@ -8,12 +8,15 @@ import discord
import smtplib, ssl
from datetime import datetime
from random import random
import json
with open('../../../ECHackersBotCreds/credentials.json') as file:
credentials = json.load(file)
auth_channel = 'auth'
domain_dest = '@earlham.edu'
send_account_email='earlhamhackerscontrol@gmail.com'
account_password = 'Z1iCriDx$16yBjf1!2#8JH'
account_password = credentials['email_password']
student_role_name = 'ECStudent'
faculty_role_name = 'ECFaculty'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment