From 927275d5b34877e709376d88814f7b194870f56d Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sun, 15 Apr 2018 00:08:56 -0800 Subject: [PATCH] Move Google keys to bot_secrets.json --- exts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exts/utils.py b/exts/utils.py index df3903c..5845a73 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -499,7 +499,7 @@ class Utils: @commands.command(name='google', aliases=['g', 'search']) async def google_search(self, ctx, *, search): - res = self.bot.gcs_service.cse().list(q=search, cx=self.bot.bot_secret['cx']).execute() + res = self.bot.gcs_service.cse().list(q=search, cx=self.bot.bot_secrets['cx']).execute() results = res['items'][:4] em = discord.Embed() em.title = f'Google Search' @@ -516,7 +516,7 @@ class Utils: 'https://www.googleapis.com/auth/drive'] credentials = ServiceAccountCredentials.from_json_keyfile_name('config/google_client_secret.json', scope) gc = gspread.authorize(credentials) - sh = gc.open_by_key(self.bot.bot_secret['sheet']) + sh = gc.open_by_key(self.bot.bot_secrets['sheet']) ws = sh.worksheet('Current Whitelist') names = ws.col_values('3') steam = ws.col_values('6')