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()