Archived
1
0
Fork 0

Ajout de la configuration (je te laisse ajouter dans le gitignore)

This commit is contained in:
Unknown 2017-12-06 16:36:31 +01:00
parent b97cdca166
commit 038fde9401
2 changed files with 13 additions and 1 deletions

6
bot.py
View file

@ -1,7 +1,11 @@
import json
import discord import discord
from discord.ext import commands from discord.ext import commands
bot = commands.Bot(description="Je suis le bot du serveur FTW !", command_prefix="<@384094872820252674> ") with open('config.json') as json_data_file:
parameter = json.load(json_data_file)
bot = commands.Bot(command_prefix=parameter['Bot']['prefix'], description=parameter['Bot']['description'])
owner = ["177393521051959306"] owner = ["177393521051959306"]

8
config.json Normal file
View file

@ -0,0 +1,8 @@
{
"Bot" : {
"name": "FTW - Bot",
"description": "Je suis le bot du serveur FTW !",
"prefix": "<@384094872820252674> ",
"token": "-"
}
}