|
|
@ -15,15 +15,18 @@
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
import statcord
|
|
|
|
import statcord
|
|
|
|
|
|
|
|
from decouple import config
|
|
|
|
from discord.ext import commands
|
|
|
|
from discord.ext import commands
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
statcord_auth = config("STATCORD_AUTH")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class StatcordPost(commands.Cog):
|
|
|
|
class StatcordPost(commands.Cog):
|
|
|
|
"""Posting my bot stats to Statcord"""
|
|
|
|
"""Posting my bot stats to Statcord"""
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, bot):
|
|
|
|
def __init__(self, bot):
|
|
|
|
self.bot = 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 = statcord.Client(self.bot, self.key)
|
|
|
|
self.api.start_loop()
|
|
|
|
self.api.start_loop()
|
|
|
|
|
|
|
|
|
|
|
|