Merge pull request #1 from jbdo99/master
Ajout de la configuration (je te laisse ajouter dans le gitignore)
This commit is contained in:
commit
e3a950a056
2 changed files with 13 additions and 1 deletions
6
bot.py
6
bot.py
|
@ -1,7 +1,11 @@
|
|||
import json
|
||||
import discord
|
||||
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"]
|
||||
|
||||
|
|
8
config.json
Normal file
8
config.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"Bot" : {
|
||||
"name": "FTW - Bot",
|
||||
"description": "Je suis le bot du serveur FTW !",
|
||||
"prefix": "<@384094872820252674> ",
|
||||
"token": "-"
|
||||
}
|
||||
}
|
Reference in a new issue