From 310c4288a4b6a82f0185aa8716ced50d9686fa6d Mon Sep 17 00:00:00 2001 From: Milka64 Date: Sat, 26 Dec 2020 23:46:02 +0100 Subject: [PATCH] remove credentials --- kabot/kabot/kabot.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 774268d..d49bc54 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -14,6 +14,7 @@ import os import random import requests import youtube_dl +import configparser from bs4 import BeautifulSoup as bs from discord.ext import tasks, commands @@ -536,10 +537,12 @@ def get_word(word_type): #Le do[main]e de Kabot. def main(): logger.info("Initialisation de Kabot") - token = "NjI3MTM3NDY1MDA5ODMxOTQ2.Xxl5dg.-eXs6op39SyB1psp4QZIXv7kPuY" - gl_url = 'https://git.0w.tf/' - gl_token = 'f_CzDU_3FzMCMfAqDiCq' - gif_token = "udhL9Rgdme3HpAoFhWVZoYM0l0XwkzLz" + config = configparser.ConfigParser() + config.read('config.ini') + token = config['discord']['token'] + gl_url = config['gitlab']['url'] + gl_token = config['gitlab']['token'] + gif_token = config['giphy']['token'] bot = commands.Bot( command_prefix='!', )