Archived
1
0
Fork 0

Merge pull request #1 from jbdo99/master

Ajout de la configuration (je te laisse ajouter dans le gitignore)
This commit is contained in:
Ethanell 2017-12-06 18:35:48 +01:00 committed by GitHub
commit e3a950a056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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": "-"
}
}