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='!', )