From 0974393ab12ef5df6bae71323bf6e87cb7323525 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 24 Aug 2020 22:28:29 +0100 Subject: [PATCH] Hiding statcord auth key --- cogs/statcord.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/statcord.py b/cogs/statcord.py index e996a6b0..37495378 100644 --- a/cogs/statcord.py +++ b/cogs/statcord.py @@ -15,15 +15,18 @@ # along with this program. If not, see . import statcord +from decouple import config from discord.ext import commands +statcord_auth = config("STATCORD_AUTH") + class StatcordPost(commands.Cog): """Posting my bot stats to Statcord""" def __init__(self, bot): self.bot = bot - self.key = "statcord.com-UmgVg71QGpIFeDdZXn5h" + self.key = f"statcord.com-{statcord_auth}" self.api = statcord.Client(self.bot, self.key) self.api.start_loop()